91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 15KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-06-06
  • 語言: Matlab
  • 標簽: 聯合仿真??

資源簡介

GUI與simulink聯合仿真,現在將我在學習過程中對于GUI控制simulink時遇到過困難的一些功能做成一個綜合實例放在這里,打個包希望給大家省點錢,也希望能夠幫助到論壇里需要的朋友!

資源截圖

代碼片段和文件信息

function?varargout?=?ex2(varargin)
%?EX2?M-file?for?ex2.fig
%??????EX2?by?itself?creates?a?new?EX2?or?raises?the?existing
%??????singleton*.
%
%??????H?=?EX2?returns?the?handle?to?a?new?EX2?or?the?handle?to
%??????the?existing?singleton*.
%
%??????EX2(‘CALLBACK‘hobjecteventDatahandles...)?calls?the?local
%??????function?named?CALLBACK?in?EX2.M?with?the?given?input?arguments.
%
%??????EX2(‘Property‘‘Value‘...)?creates?a?new?EX2?or?raises?the
%??????existing?singleton*.??Starting?from?the?left?property?value?pairs?are
%??????applied?to?the?GUI?before?ex2_OpeningFunction?gets?called.??An
%??????unrecognized?property?name?or?invalid?value?makes?property?application
%??????stop.??All?inputs?are?passed?to?ex2_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

%?Edit?the?above?text?to?modify?the?response?to?help?ex2

%?Last?Modified?by?GUIDE?v2.5?15-Mar-2008?15:06:56

%?Begin?initialization?code?-?DO?NOT?EDIT
gui_Singleton?=?1;
gui_State?=?struct(‘gui_Name‘???????mfilename?...
???????????????????‘gui_Singleton‘??gui_Singleton?...
???????????????????‘gui_OpeningFcn‘?@ex2_OpeningFcn?...
???????????????????‘gui_OutputFcn‘??@ex2_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?ex2?is?made?visible.
function?ex2_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?ex2?(see?VARARGIN)

%?Choose?default?command?line?output?for?ex2
handles.output?=?hobject;
web?-browser?http://www.ilovematlab.cn/thread-3976-1-1.html
%?Update?handles?structure
guidata(hobject?handles);

%?UIWAIT?makes?ex2?wait?for?user?response?(see?UIRESUME)
%?uiwait(handles.figure1);

%make?sure?the?simulink?model?is?opened?
if??isempty(find_system(‘Name‘‘GUI_ex11‘))
open_system(‘GUI_ex11‘);?
figure(handles.figure1)
end

%initial?the?GUI
set(handles.edit1‘String‘0);
set(handles.slider1‘Value‘0);
set(handles.text_y1‘String‘‘y1‘);
set(handles.text_y2‘String‘‘y2‘);
set(handles.text_y3‘String‘‘y3‘);


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

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????3695??2008-03-15?16:01??ex2.fig

?????文件???????8377??2008-03-15?16:48??ex2.m

?????文件??????38390??2008-03-15?15:01??GUI_ex11.mdl

?????文件????????122??2008-05-14?18:20??Matlab中文論壇--助努力的人完成畢業設計.url

?????文件???????3543??2009-02-01?16:19??使用幫助:新手必看.htm

-----------?---------??----------?-----??----

????????????????54127????????????????????5


評論

共有 條評論