国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

基于MATLAB的一級(jí)倒立擺控制仿真,帶GUI界面操作顯示倒立擺動(dòng)畫,控制器控制輸出

這篇具有很好參考價(jià)值的文章主要介紹了基于MATLAB的一級(jí)倒立擺控制仿真,帶GUI界面操作顯示倒立擺動(dòng)畫,控制器控制輸出。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

目錄

1.算法描述

2.仿真效果預(yù)覽

3.MATLAB核心程序

4.完整MATLAB


1.算法描述

? ? ? 一個(gè)可以活動(dòng)的小車上立著一根不穩(wěn)定隨時(shí)會(huì)倒下的桿。小車的輪子由電機(jī)控制,可以控制小車電機(jī)的轉(zhuǎn)動(dòng)力矩M。同時(shí),也可以獲取小車輪子轉(zhuǎn)動(dòng)的圈數(shù)N(可以精確到小數(shù))和桿相對(duì)于垂直位置的傾角α.

? ? ? 不考慮車輪打滑, 小車所受力大小等于電機(jī)力矩乘車輪半徑, 小車位置可以從轉(zhuǎn)動(dòng)圈數(shù)計(jì)算出, 小車可簡(jiǎn)化為最經(jīng)典的一階倒立擺:

基于MATLAB的一級(jí)倒立擺控制仿真,帶GUI界面操作顯示倒立擺動(dòng)畫,控制器控制輸出
?

?對(duì)小車水平方向:
Mx¨+bx˙+N=F

對(duì)擺水平方向:
N=md2dt(x+lsin?θ)

即:
N=mx¨+mlθ¨cos?θ¨?mlθ˙2sin?θ

對(duì)擺垂直方向:
P=mg+md2dt(lcos?θ)
即:

P=mg?mlθ¨sin?θ¨?mlθ˙2cos?θ

關(guān)節(jié)力矩:
?Plsin?θ?Nlcos?θ=Iθ¨

令 ?=π+θ
在工作點(diǎn) θ≈0 進(jìn)行線性化: sin?θ=0,cos?θ=1,θ˙2=0 經(jīng)過一頓操作化簡(jiǎn)之后能得到:
(I+ml2)?¨?mgl?=mlx¨ (M+m)x¨+bx˙?ml?¨=F=u

2.仿真效果預(yù)覽

matlab2022a仿真如下:

基于MATLAB的一級(jí)倒立擺控制仿真,帶GUI界面操作顯示倒立擺動(dòng)畫,控制器控制輸出

基于MATLAB的一級(jí)倒立擺控制仿真,帶GUI界面操作顯示倒立擺動(dòng)畫,控制器控制輸出

3.MATLAB核心程序

function varargout = pendulum(varargin)
% PENDULUM M-file for pendulum.fig
%      PENDULUM, by itself, creates a new PENDULUM or raises the existing
%      singleton*.
%
%      H = PENDULUM returns the handle to a new PENDULUM or the handle to
%      the existing singleton*.
%
%      PENDULUM('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in PENDULUM.M with the given input arguments.
%
%      PENDULUM('Property','Value',...) creates a new PENDULUM or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before pendulum_OpeningFunction gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to pendulum_OpeningFcn via varargin.
%
%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
%      instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
 
% Copyright 2002-2003 The MathWorks, Inc.
 
% Edit the above text to modify the response to help pendulum
 
% Last Modified by SHE on 15-Dec-2008 22:08:58
 
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @pendulum_OpeningFcn, ...
                   'gui_OutputFcn',  @pendulum_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end
 
if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
 
 
% --- Executes just before pendulum is made visible.
function pendulum_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   command line arguments to pendulum (see VARARGIN)
% Choose default command line output for pendulum
handles.output = hObject;
 
% Update handles structure
guidata(hObject, handles);
 
% UIWAIT makes pendulum wait for user response (see UIRESUME)
% uiwait(handles.figure1);
 
 
% --- Outputs from this function are returned to the command line.
function varargout = pendulum_OutputFcn(hObject, eventdata, handles) 
% varargout  cell array for returning output args (see VARARGOUT);
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
 
% Get default command line output from handles structure
varargout{1} = handles.output;
 
 
 
function edit1_Callback(hObject, eventdata, handles)
% hObject    handle to edit1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
 
% Hints: get(hObject,'String') returns contents of edit1 as text
%        str2double(get(hObject,'String')) returns contents of edit1 as a double
%以字符串的形式來存儲(chǔ)數(shù)據(jù)文本框1的內(nèi)容。如果字符串不是數(shù)字,則現(xiàn)實(shí)空白內(nèi)容
input =str2double(get(hObject,'String'));
%檢查輸入是否為空. 如果為空,則默認(rèn)顯示為0
if (isempty(input))     
set(hObject,'String','0')
end
guidata(hObject, handles);
 
% --- Executes during object creation, after setting all properties.
function edit1_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called
 
% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc
    set(hObject,'BackgroundColor','white');
else
    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
 
 
 
function edit2_Callback(hObject, eventdata, handles)
% hObject    handle to edit2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
 
% Hints: get(hObject,'String') returns contents of edit2 as text
%        str2double(get(hObject,'String')) returns contents of edit2 as a double
%以字符串的形式來存儲(chǔ)數(shù)據(jù)文本框2的內(nèi)容。如果字符串不是數(shù)字,則現(xiàn)實(shí)空白內(nèi)容
input =str2double(get(hObject,'String'));
%檢查輸入是否為空. 如果為空,則默認(rèn)顯示為0
if (isempty(input))     
set(hObject,'String','0')
end
guidata(hObject, handles);
 
% --- Executes during object creation, after setting all properties.
function edit2_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called
 
% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc
    set(hObject,'BackgroundColor','white');
else
    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
 
 
 
function edit3_Callback(hObject, eventdata, handles)
% hObject    handle to edit3 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
 
% Hints: get(hObject,'String') returns contents of edit3 as text
%        str2double(get(hObject,'String')) returns contents of edit3 as a double
%以字符串的形式來存儲(chǔ)數(shù)據(jù)文本框3的內(nèi)容。如果字符串不是數(shù)字,則現(xiàn)實(shí)空白內(nèi)容
input =str2double(get(hObject,'String'));
%檢查輸入是否為空. 如果為空,則默認(rèn)顯示為0
if (isempty(input))    
set(hObject,'String','0')
end
guidata(hObject, handles);
 
% --- Executes during object creation, after setting all properties.
function edit3_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit3 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called
 
% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc
    set(hObject,'BackgroundColor','white');
else
    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
 
 
 
function edit4_Callback(hObject, eventdata, handles)
% hObject    handle to edit4 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
 
% Hints: get(hObject,'String') returns contents of edit4 as text
%        str2double(get(hObject,'String')) returns contents of edit4 as a double
%以字符串的形式來存儲(chǔ)數(shù)據(jù)文本框4的內(nèi)容。如果字符串不是數(shù)字,則現(xiàn)實(shí)空白內(nèi)容
input =str2double(get(hObject,'String'));
%檢查輸入是否為空. 如果為空,則默認(rèn)顯示為0
if (isempty(input))     
set(hObject,'String','0')
end
guidata(hObject, handles);
 
% --- Executes during object creation, after setting all properties.
function edit4_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit4 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called
 
% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc
    set(hObject,'BackgroundColor','white');
else
    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
 
 
 
function edit5_Callback(hObject, eventdata, handles)
% hObject    handle to edit5 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
 
% Hints: get(hObject,'String') returns contents of edit5 as text
%        str2double(get(hObject,'String')) returns contents of edit5 as a double
%以字符串的形式來存儲(chǔ)數(shù)據(jù)文本框5的內(nèi)容。如果字符串不是數(shù)字,則現(xiàn)實(shí)空白內(nèi)容
input =str2double(get(hObject,'String'));
%檢查輸入是否為空. 如果為空,則默認(rèn)顯示為0
if (isempty(input))     
set(hObject,'String','0')
end
guidata(hObject, handles);
 
% --- Executes during object creation, after setting all properties.
function edit5_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit5 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called
 
% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc
    set(hObject,'BackgroundColor','white');
else
    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
 
 
% --- Executes on selection change in popupmenu1.
function popupmenu1_Callback(hObject, eventdata, handles)
% hObject    handle to popupmenu1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
 
% Hints: contents = get(hObject,'String') returns popupmenu1 contents as cell array
%        contents{get(hObject,'Value')} returns selected item from popupmenu1
popup_sel_index = get(handles.popupmenu1, 'Value');
popup_sel_index = get(handles.popupmenu1, 'Value');
switch popup_sel_index
    case 1
        set(handles.text10 ,'String','期望極點(diǎn)');
        set(handles.text11 ,'String','      -10             -10');
        set(handles.text12 ,'String','-2+2*sqrt(3)*i -2-2*sqrt(3)*i');
    case 2
        set(handles.text10 ,'String','加權(quán)矩陣');
        set(handles.text11 ,'String','Q=[1 0 0 0; 0 0 0 0; 0 0 1 0;0 0 0 0];');
        set(handles.text12 ,'String','     R=1');
    case 3
        set(handles.text10 ,'String','參考輸入');
        set(handles.text11 ,'String','  y_r=0.2*U(t)');
        set(handles.text12 ,'String',' ');
     case 4
        set(handles.text10 ,'String','PID');
        set(handles.text11 ,'String','  P=5,I=0.001,D=1');
        set(handles.text12 ,'String',' ');    
end
        
 
% --- Executes during object creation, after setting all properties.
function popupmenu1_CreateFcn(hObject, eventdata, handles)
% hObject    handle to popupmenu1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called
 
% Hint: popupmenu controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc
    set(hObject,'BackgroundColor','white');
else
    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
 
 
% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
warning off
M = str2double(get(handles.edit1, 'String'));%小車質(zhì)量
m = str2double(get(handles.edit2, 'String'));%擺桿質(zhì)量
b = str2double(get(handles.edit3, 'String'));%小車阻尼
I = str2double(get(handles.edit4, 'String'));%擺桿轉(zhuǎn)動(dòng)慣量
l = str2double(get(handles.edit5, 'String'));%擺桿長(zhǎng)度
g=9.8;                                       %重力加速度
%%%%%%%%%%%%%%%%%%%%%%%%計(jì)算系統(tǒng)狀態(tài)矩陣%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
A=[           0                   1 0             0;...
    (M+m)*m*g*l/((M+m)*I+M*m*l^2) 0 0 m*l*b/((M+m)*I+M*m*l^2);...
              0                   0 0             1;...
     -m^2*l^2*g/((M+m)*I+M*m*l^2) 0 0 -(I+m*l^2)*b/((M+m)*I+M*m*l^2)];
B=[0;-m*l/(((M+m)*I+M*m*l^2));0;(I+m*l^2)/((M+m)*I+M*m*l^2)];
C=[0 0 1 0;1 0 0 0];
D=zeros(2,1);
E=zeros(4,1);
 
%%%%%%%%%%%%%%%%%%%%將狀態(tài)矩陣轉(zhuǎn)存到狀態(tài)空間%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
assignin('base','A',A);
assignin('base','B',B);
assignin('base','C',C);
assignin('base','D',D);
assignin('base','E',E);
 
%%%%%%%%%%%%%%%%%%%%%%選擇倒立擺的控制方式%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
popup_sel_index = get(handles.popupmenu1, 'Value');
switch popup_sel_index
    case 1                         %%極點(diǎn)配置法
        Qc=ctrb(A,B);
        EA=[-10   0        0        0;...
             0  -10        0        0;...
             0    0  -2-2*sqrt(3)*i 0;...
             0    0        0        -2+2*sqrt(3)*i];
        PP=polyvalm(poly(EA),A);
        Ks=[0 0 0 1]*inv(Qc)*PP;   %%計(jì)算反饋矩陣
       
        [t,x,y]=sim('jwgcqp.mdl'); %%調(diào)用降維觀測(cè)器的simulink模塊
        
        axes(handles.axes1);
        plot(t,y(:,1));
        axes(handles.axes2);
        plot(t,y(:,3));
        axes(handles.axes3)
        plot([-0.02;0.02],[-0.8;-0.8],'color','k','linestyle','-','linewidth',2);
        axis([-0.02 0.02 -1.2 1.2]);
        car1=line([-0.004;0.004],[-0.5;-0.5],'color','k','linestyle','-','erasemode','xor','linewidth',25);
        car21=line(-0.004,-0.72,'color','k','linestyle','-','erasemode','xor','markersize',40);
        car22=line( 0.004,-0.72,'color','k','linestyle','-','erasemode','xor','markersize',40);
        pendulum1=line([0;0],[-0.3;0.6],'color','r','linestyle','-','erasemode','xor','linewidth',10);
        pendulum2=line(0,-0.27,'color','g','linestyle','-','erasemode','xor','markersize',30);
        for s=1:length(t)
            set(car21,'xdata',-0.004+y(s,3),'ydata',-0.72);
            set(car22,'xdata', 0.004+y(s,3),'ydata',-0.72);
            set(car1,'xdata',[-0.004+y(s,3);0.004+y(s,3)],'ydata',[-0.5;-0.5]);
            set(pendulum2,'xdata',y(s,3),'ydata',-0.27);
            set(pendulum1,'xdata',[y(s,3);sin(y(s,1))+y(s,3)],'ydata',[-0.3;-0.3+cos(y(s,1))]);
            drawnow;
        end
        
    case 2                         %%LQR最優(yōu)控制器
        QQ=diag([1,0,1,0]);
        RR=1;
        Ks=lqr(A,B,QQ,RR);         %%計(jì)算反饋矩陣
 
        [t,x,y]=sim('jwgcql.mdl'); %%調(diào)用降維觀測(cè)器的simulink模塊
%         figure(2)
%         subplot(4,2,1)
%         plot(t,y(:,1))
%         title('系統(tǒng)狀態(tài)變化')
%         subplot(4,2,2)
%         plot(t,y(:,5))
%         title('降維觀測(cè)器結(jié)果') 
%         subplot(4,2,3)
%         plot(t,y(:,2))
%         subplot(4,2,4)
%         plot(t,y(:,6))
%         subplot(4,2,5)
%         plot(t,y(:,3))
%         subplot(4,2,6)
%         plot(t,y(:,7))
%         subplot(4,2,7)
%         plot(t,y(:,4))
%         subplot(4,2,8)
%         plot(t,y(:,8))
        
        axes(handles.axes1);
        plot(t,y(:,1));
        axes(handles.axes2);
        plot(t,y(:,3));
        axes(handles.axes3);
        plot([-0.3;0.3],[-0.8;-0.8],'color','k','linestyle','-','linewidth',2);
        axis([-0.3 0.3 -1.2 1.2]);
        car1=line([-0.06;0.06],[-0.5;-0.5],'color','k','linestyle','-','erasemode','xor','linewidth',25);
        car21=line(-0.06,-0.72,'color','k','linestyle','-','erasemode','xor','markersize',40);
        car22=line( 0.06,-0.72,'color','k','linestyle','-','erasemode','xor','markersize',40);
        pendulum1=line([0;0],[-0.3;0.6],'color','r','linestyle','-','erasemode','xor','linewidth',10);
        pendulum2=line(0,-0.27,'color','g','linestyle','-','erasemode','xor','markersize',30);
        for s=1:length(t)
            set(car21,'xdata',-0.06+y(s,3),'ydata',-0.72);
            set(car22,'xdata', 0.06+y(s,3),'ydata',-0.72);
            set(car1,'xdata',[-0.06+y(s,3);0.06+y(s,3)],'ydata',[-0.5;-0.5]);
            set(pendulum2,'xdata',y(s,3),'ydata',-0.27);
            set(pendulum1,'xdata',[y(s,3);sin(y(s,1))+y(s,3)],'ydata',[-0.3;-0.3+cos(y(s,1))]);
            drawnow;
        end
        
        case 3
%             A=[           0                   1 0             0;...
%     (M+m)*m*g*l/((M+m)*I+M*m*l^2) 0 0 m*l*b/((M+m)*I+M*m*l^2);...
%               0                   0 0             1;...
%      -m^2*l^2*g/((M+m)*I+M*m*l^2) 0 0 -(I+m*l^2)*b/((M+m)*I+M*m*l^2)];
%             B=[0;-m*l/(((M+m)*I+M*m*l^2));0;(I+m*l^2)/((M+m)*I+M*m*l^2)];
%             C=[0 0 1 0;1 0 0 0];
%             p=[-10,-7,-1.901,-1.9];
%             Kysw=place(A,B,p);
            [x,y]=sim('pedulumpid.mdl');
            axes(handles.axes1);
            plot(t,y(:,1));
            axes(handles.axes2);
            plot(t,y(:,3));
            axes(handles.axes3);
            plot([-0.3;0.3],[-0.8;-0.8],'color','k','linestyle','-','linewidth',2);
            axis([-0.3 0.3 -1.2 1.2]);
            car1=line([-0.06;0.06],[-0.5;-0.5],'color','k','linestyle','-','erasemode','xor','linewidth',25);
            car21=line(-0.06,-0.72,'color','k','linestyle','-','erasemode','xor','markersize',40);
            car22=line( 0.06,-0.72,'color','k','linestyle','-','erasemode','xor','markersize',40);
            pendulum1=line([0;0],[-0.3;0.6],'color','r','linestyle','-','erasemode','xor','linewidth',10);
            pendulum2=line(0,-0.27,'color','g','linestyle','-','erasemode','xor','markersize',30);
            for s=1:length(t)
                set(car21,'xdata',-0.06+y(s,3),'ydata',-0.72);
                set(car22,'xdata', 0.06+y(s,3),'ydata',-0.72);
                set(car1,'xdata',[-0.06+y(s,3);0.06+y(s,3)],'ydata',[-0.5;-0.5]);
                set(pendulum2,'xdata',y(s,3),'ydata',-0.27);
                set(pendulum1,'xdata',[y(s,3);sin(y(s,1))+y(s,3)],'ydata',[-0.3;-0.3+cos(y(s,1))]);
                drawnow;
            end      
end
 
 
 
 
% --- Executes on button press in pushbutton4.
function pushbutton4_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton4 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
pause;
 
% --- Executes on button press in pushbutton5.
function pushbutton5_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton5 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
close(gcbf);
clc,clear,close all
A87

4.完整MATLAB

V文章來源地址http://www.zghlxwxcb.cn/news/detail-478406.html

到了這里,關(guān)于基于MATLAB的一級(jí)倒立擺控制仿真,帶GUI界面操作顯示倒立擺動(dòng)畫,控制器控制輸出的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • 基于MATLAB的GUI界面設(shè)計(jì)流程

    基于MATLAB的GUI界面設(shè)計(jì)流程

    大三上小學(xué)期學(xué)習(xí)了MATLAB的GUI界面設(shè)計(jì),感覺挺不錯(cuò)的,這里做個(gè)總結(jié)! 1、命令行輸入“guide”指令,打開GUI面板,選擇“新建GUI”、“Blank GUI” (左側(cè)工具欄含有待添加的元素) 2、添加所需要的的元素(一般需要普通按鈕、靜態(tài)文本、普通文本、坐標(biāo)圖、單選按鈕等)

    2024年02月01日
    瀏覽(19)
  • Matlab:利用Matlab軟件進(jìn)行GUI界面設(shè)計(jì)實(shí)現(xiàn)圖像的基本操作

    Matlab:利用Matlab軟件進(jìn)行GUI界面設(shè)計(jì)實(shí)現(xiàn)圖像的基本操作

    ??數(shù)模之路+Matlab 專欄正在持續(xù)更新中,案例的原理圖解析、各種模塊分析??這里都有哦,同時(shí)也歡迎大家訂閱專欄,獲取更多詳細(xì)信息哦??? ?個(gè)人主頁:零小唬的博客主頁 ??歡迎大家 ??點(diǎn)贊 ??評(píng)論 ??收藏 ?作者簡(jiǎn)介:20級(jí)計(jì)算機(jī)專業(yè)學(xué)生一枚,來自寧夏,可能會(huì)

    2024年02月06日
    瀏覽(31)
  • 基于MATLAB的車牌識(shí)別系統(tǒng)+GUI界面的畢業(yè)設(shè)計(jì)(完整源碼+課題報(bào)告+說明文檔+數(shù)據(jù))

    基于MATLAB的車牌識(shí)別系統(tǒng)+GUI界面的畢業(yè)設(shè)計(jì)(完整源碼+課題報(bào)告+說明文檔+數(shù)據(jù))

    近年來,隨著交通現(xiàn)代化的發(fā)展要求,汽車牌照自動(dòng)識(shí)別技術(shù)已經(jīng)越來越受到人們的重視.車牌自動(dòng)識(shí)別技術(shù)中車牌定位、字符切割、字符識(shí)別及后處理是其關(guān)鍵技術(shù).由于受到運(yùn)算速度及內(nèi)存大小的限制,以往的車牌識(shí)別大都是基于灰度圖象處理的識(shí)別技術(shù).其中首先要求正確可靠

    2024年02月11日
    瀏覽(92)
  • 畢業(yè)設(shè)計(jì)-基于 PID 控制算法仿真算法研究- Matlab

    畢業(yè)設(shè)計(jì)-基于 PID 控制算法仿真算法研究- Matlab

    目錄 前言 課題背景和意義 實(shí)現(xiàn)技術(shù)思路 一、 基本原理 ?二、無超調(diào) PID 控制器的設(shè)計(jì) 三、無超調(diào) PID 設(shè)計(jì)的驗(yàn)證 代碼 實(shí)現(xiàn)效果圖樣例 最后 ? ? ??大四是整個(gè)大學(xué)期間最忙碌的時(shí)光,一邊要忙著備考或?qū)嵙?xí)為畢業(yè)后面臨的就業(yè)升學(xué)做準(zhǔn)備,一邊要為畢業(yè)設(shè)計(jì)耗費(fèi)大量精力。

    2024年02月06日
    瀏覽(91)
  • 基于虛擬同步發(fā)電機(jī)控制的雙機(jī)并聯(lián)MATLAB仿真模型

    基于虛擬同步發(fā)電機(jī)控制的雙機(jī)并聯(lián)MATLAB仿真模型

    完整資源請(qǐng)查看主頁置頂博客(專享優(yōu)惠) 使用MATLAB2021b打開 主要內(nèi)容: 功率計(jì)算模塊、虛擬同步發(fā)電機(jī)控制模塊、電壓合成模塊、電壓電流雙環(huán)控制模塊! 1.兩臺(tái)VSG并聯(lián),開始各自帶負(fù)載10KW,在0.3秒的時(shí)候加入公共負(fù)載10KW,穩(wěn)定后兩臺(tái)VSG可以均分公共負(fù)載的功率 2.輸出的

    2024年02月16日
    瀏覽(29)
  • 現(xiàn)控報(bào)告-- 分析倒立擺系統(tǒng)穩(wěn)定性、能控性及能觀性分析,設(shè)計(jì)PID控制方案(附matlab)

    現(xiàn)控報(bào)告-- 分析倒立擺系統(tǒng)穩(wěn)定性、能控性及能觀性分析,設(shè)計(jì)PID控制方案(附matlab)

    目錄 摘要 數(shù)學(xué)建模 1、 倒立擺系統(tǒng)簡(jiǎn)介???????? 2、 直線倒立擺系統(tǒng)數(shù)學(xué)模型 系統(tǒng)傳遞函數(shù)模型? 系統(tǒng)狀態(tài)空間數(shù)學(xué)模型? 系統(tǒng)分析 3、 直線一級(jí)倒立擺系統(tǒng)分析 (1)系統(tǒng)穩(wěn)定性分析? (2)系統(tǒng)能控性和能觀性分析 仿真 4、 直線倒立擺系統(tǒng)PID控制與仿真? (1)PID控制

    2024年02月07日
    瀏覽(57)
  • 【老生談算法】基于matlab時(shí)域頻域處理的語音信號(hào)變聲處理系統(tǒng)設(shè)計(jì)與算法原理(論文+程序源碼+GUI圖形用戶界面)——變聲算法

    【老生談算法】基于matlab時(shí)域頻域處理的語音信號(hào)變聲處理系統(tǒng)設(shè)計(jì)與算法原理(論文+程序源碼+GUI圖形用戶界面)——變聲算法

    大家好,今天給大家介紹基于matlab的語音信號(hào)變聲處理系統(tǒng)設(shè)計(jì)與算法原理(論文+程序源碼)。 運(yùn)用matlab軟件實(shí)現(xiàn)對(duì)聲音的變聲處理,利用離散付里葉變換進(jìn)行頻譜分析;設(shè)計(jì)數(shù)字濾波器組;通過時(shí)域和頻域方法做出各種音效效果,實(shí)現(xiàn)變速(慢放、快放),變調(diào)(頻譜左

    2024年02月04日
    瀏覽(43)
  • 基于預(yù)測(cè)控制模型的自適應(yīng)巡航控制仿真與機(jī)器人實(shí)現(xiàn)(Matlab代碼實(shí)現(xiàn))

    基于預(yù)測(cè)控制模型的自適應(yīng)巡航控制仿真與機(jī)器人實(shí)現(xiàn)(Matlab代碼實(shí)現(xiàn))

    ?????目錄 ??1 概述 ??2 運(yùn)行結(jié)果 ??3 參考文獻(xiàn) ?????4 Matlab代碼 自適應(yīng)巡航控制技術(shù)為目前由于汽車保有量不斷增長(zhǎng)而帶來的行車安全、駕駛舒適性及交通擁堵等問題提供了一條有效的解決途徑,因此本文通過理論分析、仿真驗(yàn)證及實(shí)車實(shí)驗(yàn)對(duì)自適應(yīng)巡航控制中的若干

    2024年02月16日
    瀏覽(24)
  • Matlab GUI界面美化:創(chuàng)建令人愉悅的用戶界面

    Matlab GUI界面美化:創(chuàng)建令人愉悅的用戶界面 在Matlab中,創(chuàng)建一個(gè)美觀且易于使用的圖形用戶界面(GUI)對(duì)于增強(qiáng)用戶體驗(yàn)至關(guān)重要。通過使用適當(dāng)?shù)念伾?、布局和交互元素,可以使GUI更加吸引人,并且更易于導(dǎo)航和操作。本文將介紹一些簡(jiǎn)單而有效的方法,幫助您美化Matl

    2024年02月03日
    瀏覽(27)
  • Matlab簡(jiǎn)易版美圖秀秀(GUI界面實(shí)現(xiàn))

    Matlab簡(jiǎn)易版美圖秀秀(GUI界面實(shí)現(xiàn))

    該項(xiàng)目為數(shù)字圖像處理課程的期末大項(xiàng)目,主要內(nèi)容是用matlab軟件實(shí)現(xiàn)一些美圖秀秀相關(guān)功能,比如對(duì)圖像進(jìn)行水平垂直翻轉(zhuǎn),旋轉(zhuǎn),裁剪,摳圖等基礎(chǔ)功能;對(duì)圖像添加浮雕,藝術(shù)噪聲,灰度膠片,動(dòng)感模糊,素描,油畫,羽化等濾鏡的功能;以及祛痘祛痣,白牙,大眼,

    2024年02月09日
    瀏覽(24)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包