資源簡介
本代碼用于仿真車輛在兩條單向三車道道路上移動的情形,考慮到了加速度,超車,背景流量等

代碼片段和文件信息
function?varargout?=?bosong(varargin)
%?BOSONG?M-file?for?bosong.fig
%??????BOSONG?by?itself?creates?a?new?BOSONG?or?raises?the?existing
%??????singleton*.
%
%??????H?=?BOSONG?returns?the?handle?to?a?new?BOSONG?or?the?handle?to
%??????the?existing?singleton*.
%
%??????BOSONG(‘CALLBACK‘hobjecteventDatahandles...)?calls?the?local
%??????function?named?CALLBACK?in?BOSONG.M?with?the?given?input?arguments.
%
%??????BOSONG(‘Property‘‘Value‘...)?creates?a?new?BOSONG?or?raises?the
%??????existing?singleton*.??Starting?from?the?left?property?value?pairs?are
%??????applied?to?the?GUI?before?bosong_OpeningFunction?gets?called.??An
%??????unrecognized?property?name?or?invalid?value?makes?property?application
%??????stop.??All?inputs?are?passed?to?bosong_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?bosong
%?Last?Modified?by?GUIDE?v2.5?19-May-2010?20:35:40
%?Begin?initialization?code?-?DO?NOT?EDIT
gui_Singleton?=?1;
gui_State?=?struct(‘gui_Name‘???????mfilename?...
???????????????????‘gui_Singleton‘??gui_Singleton?...
???????????????????‘gui_OpeningFcn‘?@bosong_OpeningFcn?...
???????????????????‘gui_OutputFcn‘??@bosong_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?bosong?is?made?visible.
function?bosong_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?bosong?(see?VARARGIN)
%?Choose?default?command?line?output?for?bosong
handles.output?=?hobject;
%?Update?handles?structure
guidata(hobject?handles);
%?UIWAIT?makes?bosong?wait?for?user?response?(see?UIRESUME)
%?uiwait(handles.figure1);
%?---?Outputs?from?this?function?are?returned?to?the?command?line.
function?varargout?=?bosong_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
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????12345??2010-05-19?23:02??bosong.m
?????文件???????2891??2011-05-30?21:50??car_simulation.asv
?????文件???????2910??2011-05-31?21:57??car_simulation.m
?????文件?????????60??2011-05-30?21:25??exam.asv
?????文件?????????91??2011-05-30?21:26??exam.m
?????文件??????18125??2011-05-26?08:48??matlab.mat
?????文件???????3792??2011-05-31?21:49??next_step.asv
?????文件???????4464??2011-05-31?21:58??next_step.m
?????文件???????2210??2011-05-25?14:15??82996525bosong.rar
-----------?---------??----------?-----??----
????????????????46888????????????????????9
- 上一篇:車輛動態仿真MATLAB仿真代碼
- 下一篇:短時傅里葉變換的matlab實現
評論
共有 條評論