云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > 自动控制原理Matlab程序作业(精)

自动控制原理Matlab程序作业(精)

  • 62 次阅读
  • 3 次下载
  • 2025/5/1 0:06:14

function Liushuai20122510_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 Liushuai20122510 (see VARARGIN % Choose default command line output for Liushuai20122510 handles.output = hObject; % Update handles structure guidata(hObject, handles;

% UIWAIT makes Liushuai20122510 wait for user response (see UIRESUME % uiwait(handles.figure1;

% --- Outputs from this function are returned to the command line. function varargout = Liushuai20122510_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;

% --- 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

num = str2num(get(handles.edit1,'String' ; den = str2num(get(handles.edit2,'String' ; G = tf(num,den; rlocus(G hold on ; sgrid(0.707,[] hold off ;

% --- Executes on button press in pushbutton2.

function pushbutton2_Callback(hObject, eventdata, handles % hObject handle to pushbutton2 (see GCBO

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA

num = str2num(get(handles.edit1,'String' ; den = str2num(get(handles.edit2,'String' ;

sys=tf(num,den; [y,t]=step(sys; plot(t,y; grid on ;

% --- Executes on button press in pushbutton3.

function pushbutton3_Callback(hObject, eventdata, handles % hObject handle to pushbutton3 (see GCBO

% eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA close(gcbf;

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 % --- 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 && isequal(get(hObject,'BackgroundColor' , get(0,'defaultUicontrolBackgroundColor'

set(hObject,'BackgroundColor' , 'white' ; 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

num = str2num(get(handles.edit1,'String' ; den = str2num(get(handles.edit2,'String' ; finalvalue = polyval(num,0/polyval(den,0 sys=tf(num,den; [Kc,p]=rlocfind(sys; set(handles.Kc,'string' ,Kc; X = real(p(1 Y = imag(p(1

搜索更多关于: 自动控制原理Matlab程序作业(精) 的文档
  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

function Liushuai20122510_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 Liushuai20122510 (see VARARGIN % Choose default command li

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com