资源简介
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
相关资源
- 轿车ASR的ADAMS_CAR和MATLAB联合仿真
- AVL CRUISE_MATLAB联合仿真配置.pdf
-
simuli
nk和pspice的接口程序 - saber\\matlab联合仿真
- ADAMS与MATLAB联合仿真模拟曲柄摇杆机构
-
carsim与simuli
nk联合仿真124669 - 基于MATLAB与Comsol联合仿真的电磁优化
- win10下amesimR14和matlab2016联合仿真设置
- 车道保持.zip
-
FMIKit_for_Simuli
nk2.4.2.zip -
CarSim、Simuli
nk联合仿真介绍及.zip - VREP-matlab联合仿真64位动态链接库v_r
- saber&MATLAB;联合仿真设置
- COMSOL5和matlab联合仿真的书
- 预瞄+滑膜变结构控制实现轨迹跟随,
-
单点预瞄 Carsim与simuli
nk联合仿真. -
Carsim与simuli
nk联合仿真包含ACC,LK -
差动驱动Carsim与simuli
nk联合仿真.r - 基于ADAMS和MATLAB的机器人联合仿真
- 一级倒立摆MATLAB与Adams联合仿真,保证
- 基于prescan 的V2V仿真.rar
-
cruise和simuli
nk联合仿真 -
Carsim_Simuli
nk联合仿真官方模型文件 - optisystem与matlab联合仿真
- APF和SVG的联合仿真
-
传个simuli
nk与carsim联合仿真的说明 - adams与matlab联合仿真
-
Simuli
nk与LabVIEW联合仿真教程.pdf -
MATLABSimuli
nk与Modelsim联合仿真步骤及 - maxwell与simplorer联合仿真2.zip
川公网安备 51152502000135号
评论
共有 条评论