[dynamics] vehicle dynamics analysis system based on Matlab GUI [including Matlab source code phase 1050]

Jiang Xiaohu 2021-08-07 09:33:39 阅读数:633

本文一共[544]字,预计阅读时长:1分钟~
dynamics vehicle dynamics analysis based

One 、 brief introduction

 Insert picture description here
 Insert picture description here
 Insert picture description here
 Insert picture description here
 Insert picture description here
In longitudinal , It may also be subject to longitudinal air resistance , Front wheel rolling resistance , Rear wheel rolling resistance , Ramp gravity component, etc

Two 、 Source code

function varargout = CVPower(varargin)
% CVPOWER Application M-file for CVPower.fig
% FIG = CVPOWER launch CVPower GUI.
% CVPOWER('callback_name', ...) invoke the named callback.
% Last Modified by GUIDE v2.0 14-Sep-2020 21:44:17
if nargin == 0 % LAUNCH GUI
fig = openfig(mfilename,'reuse');
% Use system color scheme for figure:
set(fig,'Color',get(0,'defaultUicontrolBackgroundColor'));
% Generate a structure of handles to pass to callbacks, and store it.
handles = guihandles(fig);
guidata(fig, handles);
if nargout > 0
varargout{1} = fig;
end
elseif ischar(varargin{1}) % INVOKE NAMED SUBFUNCTION OR CALLBACK
try
if (nargout)
[varargout{1:nargout}] = feval(varargin{:}); % FEVAL switchyard
else
feval(varargin{:}); % FEVAL switchyard
end
catch
disp(lasterr);
end
end
%| ABOUT CALLBACKS:
%| GUIDE automatically appends subfunction prototypes to this file, and
%| sets objects' callback properties to call them through the FEVAL
%| switchyard above. This comment describes that mechanism.
%|
%| Each callback subfunction declaration has the following form:
%| <SUBFUNCTION_NAME>(H, EVENTDATA, HANDLES, VARARGIN)
%|
%| The subfunction name is composed using the object's Tag and the
%| callback type separated by '_', e.g. 'slider2_Callback',
%| 'figure1_CloseRequestFcn', 'axis1_ButtondownFcn'.
%|
%| H is the callback object's handle (obtained using GCBO).
%|
%| EVENTDATA is empty, but reserved for future use.
%|
%| HANDLES is a structure containing handles of components in GUI using
%| tags as fieldnames, e.g. handles.figure1, handles.slider2. This
%| structure is created at GUI startup using GUIHANDLES and stored in
%| the figure's application data using GUIDATA. A copy of the structure
%| is passed to each callback. You can store additional information in
%| this structure at GUI startup, and you can change the structure
%| during callbacks. Call guidata(h, handles) after changing your
%| copy to replace the stored original so that subsequent callbacks see
%| the updates. Type "help guihandles" and "help guidata" for more
%| information.
%|
%| VARARGIN contains any extra arguments you have passed to the
%| callback. Specify the extra arguments by editing the callback
%| property in the inspector. By default, GUIDE sets the property to:
%| <MFILENAME>('<SUBFUNCTION_NAME>', gcbo, [], guidata(gcbo))
%| Add any extra arguments after the last argument, before the final
%| closing parenthesis.
% --------------------------------------------------------------------
function varargout = pushbutton1_Callback(h, eventdata, handles, varargin)
% --------------------------------------------------------------------
function varargout = pushbutton2_Callback(h, eventdata, handles, varargin)
close CVPower;
h2=waitbar(0,'edit interface is openning,please wait...');
for i2=1:1000
waitbar(i2/1000);
end
close(h2);
CVPowerEdit;
% --------------------------------------------------------------------
function varargout = pushbutton3_Callback(h, eventdata, handles, varargin)
close CVPower;
% --------------------------------------------------------------------
function varargout = CVPowerEdit(varargin)
% CVPOWEREDIT Application M-file for CVPowerEdit.fig
% FIG = CVPOWEREDIT launch CVPowerEdit GUI.
% CVPOWEREDIT('callback_name', ...) invoke the named callback.
% Last Modified by GUIDE v2.0 16-Sep-2020 23:57:39
if nargin == 0 % LAUNCH GUI
fig = openfig(mfilename,'reuse');
% Generate a structure of handles to pass to callbacks, and store it.
handles = guihandles(fig);
guidata(fig, handles);
if nargout > 0
varargout{1} = fig;
end
elseif ischar(varargin{1}) % INVOKE NAMED SUBFUNCTION OR CALLBACK
try
if (nargout)
[varargout{1:nargout}] = feval(varargin{:}); % FEVAL switchyard
else
feval(varargin{:}); % FEVAL switchyard
end
catch
disp(lasterr);
end
end
%| ABOUT CALLBACKS:
%| GUIDE automatically appends subfunction prototypes to this file, and
%| sets objects' callback properties to call them through the FEVAL
%| switchyard above. This comment describes that mechanism.
%|
%| Each callback subfunction declaration has the following form:
%| <SUBFUNCTION_NAME>(H, EVENTDATA, HANDLES, VARARGIN)
%|
%| The subfunction name is composed using the object's Tag and the
%| callback type separated by '_', e.g. 'slider2_Callback',
%| 'figure1_CloseRequestFcn', 'axis1_ButtondownFcn'.
%|
%| H is the callback object's handle (obtained using GCBO).
%|
%| EVENTDATA is empty, but reserved for future use.
%|
%| HANDLES is a structure containing handles of components in GUI using
%| tags as fieldnames, e.g. handles.figure1, handles.slider2. This
%| structure is created at GUI startup using GUIHANDLES and stored in
%| the figure's application data using GUIDATA. A copy of the structure
%| is passed to each callback. You can store additional information in
%| this structure at GUI startup, and you can change the structure
%| during callbacks. Call guidata(h, handles) after changing your
%| copy to replace the stored original so that subsequent callbacks see
%| the updates. Type "help guihandles" and "help guidata" for more
%| information.
%|
%| VARARGIN contains any extra arguments you have passed to the
%| callback. Specify the extra arguments by editing the callback
%| property in the inspector. By default, GUIDE sets the property to:
%| <MFILENAME>('<SUBFUNCTION_NAME>', gcbo, [], guidata(gcbo))
%| Add any extra arguments after the last argument, before the final
%| closing parenthesis.
%--------------------------------------------------------------------
% global nmin nmax ne Ttq m1 m2 r nt f CD A If Iwf Iwr i0 ig Uastar Uaend get1 get2
% if get1==1&get2==0
% set(handles.radio1,'value',1);
% set(handles.edit1,'string',num2str(nmin));
% set(handles.edit2,'string',num2str(nmax));
% else
% if get1==0&get2==1
% set(handles.radio2,'value',1);
% set(handles.edit3,'string',num2str(ne));
% set(handles.edit4,'string',num2str(Ttq));
% end
% end
% set(handles.edit1,'string',num2str(nmin));
% set(handles.edit2,'string',num2str(nmax));
% set(handles.edit3,'string',num2str(ne));
% set(handles.edit4,'string',num2str(Ttq));
% set(handles.edit5,'string',num2str(m1));
% set(handles.edit6,'string',num2str(m2));
% set(handles.edit7,'string',num2str(r));
% set(handles.edit8,'string',num2str(nt));
% set(handles.edit9,'string',num2str(f));
% set(handles.edit10,'string',num2str(CD));
% set(handles.edit11,'string',num2str(A));
% set(handles.edit12,'string',num2str(If));
% set(handles.edit13,'string',num2str(Iwf));
% set(handles.edit14,'string',num2str(Iwr));
% set(handles.edit15,'string',num2str(i0));
% set(handles.edit16,'string',num2str(ig));
% set(handles.edit17,'string',num2str(Uastar));
% set(handles.edit18,'string',num2str(Uaend));
% --------------------------------------------------------------------
function varargout = edit1_Callback(h, eventdata, handles, varargin)
% --------------------------------------------------------------------
function varargout = edit2_Callback(h, eventdata, handles, varargin)
% --------------------------------------------------------------------
function varargout = edit3_Callback(h, eventdata, handles, varargin)
% --------------------------------------------------------------------
function varargout = edit4_Callback(h, eventdata, handles, varargin)
% --------------------------------------------------------------------
function varargout = edit5_Callback(h, eventdata, handles, varargin)
% --------------------------------------------------------------------
function varargout = edit6_Callback(h, eventdata, handles, varargin)
% --------------------------------------------------------------------
function varargout = edit7_Callback(h, eventdata, handles, varargin)
% --------------------------------------------------------------------
function varargout = edit8_Callback(h, eventdata, handles, varargin)
% --------------------------------------------------------------------
function varargout = edit9_Callback(h, eventdata, handles, varargin)
% --------------------------------------------------------------------
function varargout = edit10_Callback(h, eventdata, handles, varargin)
% --------------------------------------------------------------------
function varargout = edit11_Callback(h, eventdata, handles, varargin)
% --------------------------------------------------------------------
function varargout = edit12_Callback(h, eventdata, handles, varargin)
% --------------------------------------------------------------------
function varargout = edit13_Callback(h, eventdata, handles, varargin)
% --------------------------------------------------------------------
function varargout = edit14_Callback(h, eventdata, handles, varargin)
% --------------------------------------------------------------------
function varargout = edit15_Callback(h, eventdata, handles, varargin)
% --------------------------------------------------------------------
function varargout = edit16_Callback(h, eventdata, handles, varargin)
% --------------------------------------------------------------------
function varargout = edit17_Callback(h, eventdata, handles, varargin)
% --------------------------------------------------------------------
function varargout = edit18_Callback(h, eventdata, handles, varargin)
% --------------------------------------------------------------------
function varargout = radiobutton1_Callback(h, eventdata, handles, varargin)
set(handles.radio1,'value',get(handles.radio1,'max'));
set(handles.radio2,'value',get(handles.radio2,'min'));
set(handles.edit1,'enable','on');
set(handles.edit2,'enable','on');
set(handles.edit3,'enable','off');
set(handles.edit4,'enable','off');

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.
  • 57.
  • 58.
  • 59.
  • 60.
  • 61.
  • 62.
  • 63.
  • 64.
  • 65.
  • 66.
  • 67.
  • 68.
  • 69.
  • 70.
  • 71.
  • 72.
  • 73.
  • 74.
  • 75.
  • 76.
  • 77.
  • 78.
  • 79.
  • 80.
  • 81.
  • 82.
  • 83.
  • 84.
  • 85.
  • 86.
  • 87.
  • 88.
  • 89.
  • 90.
  • 91.
  • 92.
  • 93.
  • 94.
  • 95.
  • 96.
  • 97.
  • 98.
  • 99.
  • 100.
  • 101.
  • 102.
  • 103.
  • 104.
  • 105.
  • 106.
  • 107.
  • 108.
  • 109.
  • 110.
  • 111.
  • 112.
  • 113.
  • 114.
  • 115.
  • 116.
  • 117.
  • 118.
  • 119.
  • 120.
  • 121.
  • 122.
  • 123.
  • 124.
  • 125.
  • 126.
  • 127.
  • 128.
  • 129.
  • 130.
  • 131.
  • 132.
  • 133.
  • 134.
  • 135.
  • 136.
  • 137.
  • 138.
  • 139.
  • 140.
  • 141.
  • 142.
  • 143.
  • 144.
  • 145.
  • 146.
  • 147.
  • 148.
  • 149.
  • 150.
  • 151.
  • 152.
  • 153.
  • 154.
  • 155.
  • 156.
  • 157.
  • 158.
  • 159.
  • 160.
  • 161.
  • 162.
  • 163.
  • 164.
  • 165.
  • 166.
  • 167.
  • 168.
  • 169.
  • 170.
  • 171.
  • 172.
  • 173.
  • 174.
  • 175.
  • 176.
  • 177.
  • 178.
  • 179.
  • 180.
  • 181.
  • 182.
  • 183.
  • 184.
  • 185.
  • 186.
  • 187.
  • 188.
  • 189.
  • 190.
  • 191.
  • 192.
  • 193.
  • 194.
  • 195.
  • 196.
  • 197.
  • 198.
  • 199.
  • 200.
  • 201.
  • 202.
  • 203.
  • 204.
  • 205.
  • 206.
  • 207.
  • 208.
  • 209.
  • 210.
  • 211.
  • 212.
  • 213.
  • 214.
  • 215.
  • 216.
  • 217.
  • 218.
  • 219.
  • 220.
  • 221.
  • 222.
  • 223.
  • 224.
  • 225.
  • 226.
  • 227.

3、 ... and 、 Running results

 Insert picture description here
 Insert picture description here
 Insert picture description here
 Insert picture description here

Four 、 remarks

edition :2014a

版权声明:本文为[Jiang Xiaohu]所创,转载请带上原文链接,感谢。 https://car.inotgo.com/2021/08/20210807092744631u.html