资源简介
matlab汽车悬架仿真
代码片段和文件信息
function varargout = busgui(varargin)
%%
%
%
%**************************************************************%
%This functions creates a graphical user interface which %
%contains an animation of the Bus Suspension example. This %
%function was created for the Control Tutorials for Matlab. It %
%requires the function busFUN.m to be executed. %
% %
%Copyright (C) 1997 by the Regents of the University of %
%Michigan. %
%(7-11-2012) Modified by Asst. Prof. Rick Hill (UDM) and his %
%student Li Guan. %
%**************************************************************%
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘ mfilename ...
‘gui_Singleton‘ gui_Singleton ...
‘gui_OpeningFcn‘ @busgui_OpeningFcn ...
‘gui_OutputFcn‘ @busgui_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 busgui is made visible.
function busgui_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 busgui (see VARARGIN)
% Choose default command line output for busgui
handles.output = hobject;
% Update handles structure
guidata(hobject handles);
% UIWAIT makes busgui wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = busgui_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 slider movement.
function slider1_Callback(hobject eventdata handles)
% hobject handle to slider1 (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‘Value‘) returns position of slider
% get(hobject‘Min‘) and get(hobject‘Max‘) to determine range of slider
k=get(hobject‘value‘);
if abs(k)<1e6
k=sprintf(‘%0.1g‘k);
else
k=sprintf(‘%0.2g‘k);
end
a=num2str(k);
set(handles.text2‘string‘a)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 11614 2015-12-09 20:12 汽车悬架仿真\busgui.fig
文件 14412 2016-10-18 16:59 汽车悬架仿真\busgui.m
目录 0 2015-12-09 20:21 汽车悬架仿真
----------- --------- ---------- ----- ----
26026 3
- 上一篇:BP神经网络在遥感图像中的分类
- 下一篇:matlab源程序,计算mie散射
评论
共有 条评论