2024年2月21日发(作者:)
基于滤波白噪声法的路面激励生成软件V1.0 源代码
1
function varargout = Road_Excitation(varargin)
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @Road_Excitation_OpeningFcn, ...
'gui_OutputFcn', @Road_Excitation_OutputFcn, ...
'gui_LayoutFcn', @Road_Excitation_LayoutFcn, ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui__Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
function Road_Excitation_OpeningFcn(hObject, eventdata, handles, varargin)
= hObject;
guidata(hObject, handles);
function varargout = Road_Excitation_OutputFcn(hObject, eventdata, handles)
varargout{1} = ;
function T_Callback(hObject, eventdata, handles)
global T
T=str2double(get(hObject,'String'));
guidata(hObject, handles);
function T_CreateFcn(hObject, eventdata, handles)
global choice
choice=4;
set(gcf,'NumberTitle', 'off', 'Name');
function T_ButtonDownFcn(hObject, eventdata, handles)
set(hObject, 'String', '', 'Enable', 'on');
uicontrol(hObject);
set(24,'String', '正在输入T,请输入数值');
function grade_Callback(hObject, eventdata, handles)
global grade
global Gq
grade=double(get(hObject,'String'));
Gqn=10^(-6)*[16 64 256 1024 4096 16384 65536 262144];
check=['A' 'B' 'C' 'D' 'E' 'F' 'G' 'H'];
check1=double(check);
check=['a' 'b' 'c' 'd' 'e' 'f' 'g' 'h'];
check2=double(check);
for i=1:8
if grade==check1(i)
Gq=Gqn(i);
elseif grade==check2(i)
Gq=Gqn(i);
end
end
guidata(hObject, handles);
基于滤波白噪声法的路面激励生成软件V1.0 源代码
2
function grade_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
guidata(hObject, handles);
function grade_ButtonDownFcn(hObject, eventdata, handles)
set(hObject, 'String', '', 'Enable', 'on');
set(24,'String', '正在输入路面等级,不区分字母大小写');
uicontrol(hObject);
function u_Callback(hObject, eventdata, handles)
global u
u=str2double(get(hObject,'String'))/3.6;
guidata(hObject, handles);
function u_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function u_ButtonDownFcn(hObject, eventdata, handles)
set(hObject, 'String', '', 'Enable', 'on');
set(24,'String', '正在输入车速,单位为km/h');
uicontrol(hObject);
function L_Callback(hObject, eventdata, handles)
global L
L=str2double(get(hObject,'String'));guidata(hObject, handles);
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function L_ButtonDownFcn(hObject, eventdata, handles)
set(hObject, 'String', '', 'Enable', 'on');
set(24,'String', '正在输入前后轴轴距,单位为米');
uicontrol(hObject);
function Bf_Callback(hObject, eventdata, handles)
global Bf
Bf=str2double(get(hObject,'String'));
guidata(hObject, handles);
function Bf_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function Bf_ButtonDownFcn(hObject, eventdata, handles)
set(hObject, 'String', '', 'Enable', 'on');
set(24,'String', '正在输入前轴左右轮距,单位为米');
uicontrol(hObject);
function Br_Callback(hObject, eventdata, handles)
global Br
Br=str2double(get(hObject,'String'));
guidata(hObject, handles);
function Br_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
基于滤波白噪声法的路面激励生成软件V1.0 源代码
3
end
function Br_ButtonDownFcn(hObject, eventdata, handles)
set(hObject, 'String', '', 'Enable', 'on');
set(24,'String', '正在输入后轴左右轮距,单位为米');
uicontrol(hObject);
function dt_Callback(hObject, eventdata, handles)
global dt
dt=str2double(get(hObject,'String'));
guidata(hObject, handles);
function dt_CreateFcn(hObject, eventdata, handles)
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function dt_ButtonDownFcn(hObject, eventdata, handles)
set(hObject, 'String', '', 'Enable', 'on');
set(24,'String', '正在输入仿真步长,单位为秒');
uicontrol(hObject);
function pushbutton2_Callback(hObject, eventdata, handles)
set(24,'String', '正在计算四轮路面激励...请稍等,如时间较长,检查输入参数是否有误');
pause(2)
global dt
global T
global nq
global n0
global B
global Bf
global Br
global td
global w
global L
global u
global t
global q
global choice
nq=0.0001;
n0=0.1;
Num=floor(T/dt)+1;
B=(Bf+Br)/2;
td=L/u;
w=wgn(1,Num,0.5/dt,'linear')';
tspan=0:dt:((Num-1)*dt);
[t,q] =ode45(@equation,tspan,[0 0 0 0]);
if choice==4
axes(1);
plot(t,q(:,1),'k-')
xlabel('时间 t/s');
ylabel('左前轮路面激励/m');
box off
axes(5);
plot(t,q(:,2),'k-')
基于滤波白噪声法的路面激励生成软件V1.0 源代码
4
xlabel('时间 t/s');
ylabel('右前轮路面激励/m');
box off
axes(4);
plot(t,q(:,3),'k-')
xlabel('时间 t/s');
ylabel('左后轮路面激励/m');
box off
axes(6);
plot(t,q(:,4),'k-')
xlabel('时间 t/s');
ylabel('右后轮路面激励/m');
box off
elseif choice==1
axes(1);
plot(t,q(:,1),'k-')
xlabel('时间 t/s');
ylabel('单轮轮路面激励/m');
box off
elseif choice==2
axes(1);
plot(t,q(:,1),'k-')
xlabel('时间 t/s');
ylabel('前轮路面激励/m');
box off
axes(4);
plot(t,q(:,3),'k-')
xlabel('时间 t/s');
ylabel('后轮路面激励/m');
box off
end
set(24,'String', '计算完成,已在图形区显示图像');
function dq=equation(t,q)
global u
global dt
global nq
global n0
global Gq
global w
global td
global B
E=[-2*pi*nq*u 0 0 0;2*u/B+2*pi*nq*u -2*u/B 0 0;2/td+2*pi*nq*u 0 -2/td 0;-(2*u/B+2*pi*nq*u) 2/td+2*u/B 0
-2/td];
F=2*pi*n0*sqrt(Gq*u)*[1;-1;-1;1];
dq=E*q+F*w(floor(t/dt)+1);
function pushbutton3_Callback(hObject, eventdata, handles)
global t
global q
global choice
qq=1000*q;
基于滤波白噪声法的路面激励生成软件V1.0 源代码
5
fid=fopen('','wt+');
if choice==1
rel=[t qq(:,1)]';
fprintf(fid,'%-8.4f %-8.3fn',rel);
elseif choice==2
rel=[t qq(:,1) qq(:,3)]';
fprintf(fid,'%-8.4f %-8.3f %-8.3fn',rel);
else
rel=[t qq]';
fprintf(fid,'%-8.4f %-8.3f %-8.3f %-8.3f %-8.3fn',rel);
end
fclose(fid);
if choice==0
set(24,'String', '保存成功,默认保存四轮激励,共5列,第1列为时间,其他列为不同车轮路面激励,文件中激励单位为mm');
elseif choice==1
set(24,'String', '保存成功,共2列数据,第1列为时间,第2列为单轮路面激励,文件中激励单位为mm');
elseif choice==2
set(24,'String', '保存成功,共3列数据,第1列为时间,2、3列分别为前、后轮路面激励,文件中激励单位为mm');
elseif choice==4
set(24,'String', '保存成功,共5列数据,第1列为时间,其他列为不同车轮路面激励,文件中激励单位为mm');
end
function T_KeyPressFcn(hObject, eventdata, handles)
function radiobutton2_Callback(hObject, eventdata, handles)
set(utton2,'value',1)
set(utton3,'value',0)
set(utton4,'value',0)
global choice
global L
global Br
global Bf
choice=1;
set(4,'String','');
set(16,'String','');
set(5,'String','');
set(17,'String','');
set(6,'String','');
set(18,'String','');
set(,'String','1');
set(,'String','1');
set(handles.T,'String','输入T');
set(,'String','输入dt');
set(,'String','输入等级');
set(handles.u,'String','输入u');
set(handles.L,'String','--------');
set(,'String','--------');
set(,'String','--------');
基于滤波白噪声法的路面激励生成软件V1.0 源代码
6
L=1;
Br=1;
Bf=1;
axes(5);
cla reset
axes(4);
cla reset
axes(6);
cla reset
set(24,'String','已选择单轮时域路面激励模式,多余参数置1');
function radiobutton3_Callback(hObject, eventdata, handles)
set(utton2,'value',0)
set(utton3,'value',1)
set(utton4,'value',0)
global choice
global Br
global Bf
choice=2;
set(4,'String','前后轴距:');
set(16,'String','(单位m)');
set(5,'String','');
set(17,'String','');
set(6,'String','');
set(18,'String','');
set(handles.T,'String','输入T');
set(,'String','输入dt');
set(,'String','输入等级');
set(handles.u,'String','输入u');
set(handles.L,'String','输入L');
set(,'String','--------');
set(,'String','--------');
Br=1;
Bf=1;
axes(5);
cla reset
axes(6);
cla reset
set(24,'String','已选择前后双轮时域路面激励模式,多余参数置1');
function radiobutton4_Callback(hObject, eventdata, handles)
set(utton2,'value',0)
set(utton3,'value',0)
set(utton4,'value',1)
global choice
choice=4;
set(4,'String','前后轴距:');
set(16,'String','(单位m)');
set(5,'String','前轴左右轮距:');
set(17,'String','(单位m)');
set(6,'String','后轴左右轮距:');
set(18,'String','(单位m)');
基于滤波白噪声法的路面激励生成软件V1.0 源代码
7
set(handles.T,'String','输入T');
set(,'String','输入dt');
set(,'String','输入等级');
set(handles.u,'String','输入u');
set(handles.L,'String','输入L');
set(,'String','输入Bf');
set(,'String','输入Br');
set(24,'String','已选择四轮时域路面激励模式');
function h1 = Road_Excitation_LayoutFcn(policy)
persistent hsingleton;
if strcmpi(policy, 'reuse') & ishandle(hsingleton)
h1 = hsingleton;
return;
end
appdata = [];
ptions = struct('active_h', [],'taginfo',...
struct('figure', 2, 'radiobutton', 6,'slider', 3,'text', 27, ...
'pushbutton', 6, 'axes', 23, 'edit', 11, 'uitable',...
2,'checkbox', 4, 'popupmenu', 2,'listbox', 3,'uipanel', 7, ...
'togglebutton', 2),'override', 0,'release', 13,'resize',...
'none','accessibility', 'callback','mfile', 1,'callbacks', 1, ...
'singleton', 1,'syscolorfig', 1, 'blocking', 0);
lidTag = 'figure1';
ayoutEditor = [];
gs = struct('handle', [],'tag', 'figure1');
h1 = figure('Units','characters','PaperUnits',get(0,'defaultfigurePaperUnits'),...
'Color',[0.9435 0.9435 0.9435],...
'Colormap',[0 0 0.5625;0 0 0.625;0 0 0.6875;0 0 0.75;0 0 0.8125;0 0 0.875;0 0 0.9375;0 0 1;0 0.0625 1;0 0.125
1;0 0.1875 1;0 0.25 1;0 0.3125 1;0 0.375 1;0 0.4375 1;0 0.5 1;0 0.5625 1;0 0.625 1;0 0.6875 1;0 0.75 1;0 0.8125
1;0 0.875 1;0 0.9375 1;0 1 1;0.0625 1 1;0.125 1 0.9375;0.1875 1 0.875;0.25 1 0.8125;0.3125 1 0.75;0.375 1
0.6875;0.4375 1 0.625;0.5 1 0.5625;0.5625 1 0.5;0.625 1 0.4375;0.6875 1 0.375;0.75 1 0.3125;0.8125 1
0.25;0.875 1 0.1875;0.9375 1 0.125;1 1 0.0625;1 1 0;1 0.9375 0;1 0.875 0;1 0.8125 0;1 0.75 0;1 0.6875 0;1 0.625
0;1 0.5625 0;1 0.5 0;1 0.4375 0;1 0.375 0;1 0.3125 0;1 0.25 0;1 0.1875 0;1 0.125 0;1 0.0625 0;1 0 0;0.9375 0
0;0.875 0 0;0.8125 0 0;0.75 0 0;0.6875 0 0;0.625 0 0;0.5625 0 0],...
'IntegerHandle','off','InvertHardcopy',get(0,'defaultfigureInvertHardcopy'),'MenuBar','none',...
'Name','NumberTitle','off','PaperPosition',...
get(0,'defaultfigurePaperPosition'),'PaperSize',...
get(0,'defaultfigurePaperSize'),'PaperType',...
get(0,'defaultfigurePaperType'),'Position',[103.5 33.6 140.4 27.8],...
'Resize','off','HandleVisibility','callback','UserData',[],...
'Tag','figure1','Visible','on','CreateFcn',...
{@local_CreateFcn, blanks(0), appdata} );
appdata = [];
lidTag = 'uipanel1';
h2 = uipanel('Parent',h1,'Units','characters',...
'Title','图像区','Clipping','on','BackgroundColor',...
[0.95 0.972 0.95],'Position',[47 2.2 92.2 23.8],...
'Tag','uipanel1','CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
lidTag = 'uipanel4';
基于滤波白噪声法的路面激励生成软件V1.0 源代码
8
h3 = uipanel('Parent',h1,'Units','characters',...
'FontSize',12,'ForegroundColor',[1 0 1],...
'Title','路面激励生成与保存:',...
'Clipping','on','BackgroundColor',[0.75 0.86 0.76],...
'Position',[2.2 2.3 44.5 3.8],'Tag','uipanel4',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
lidTag = 'pushbutton2';
h4 = uicontrol('Parent',h3,'Units','characters',...
'Callback',@(hObject,eventdata)Road_Excitation('pushbutton2_Callback',...
hObject,eventdata,guidata(hObject)),'FontSize',12,...
'Position',[7.85 0.45 11.28 1.8],'String','生成',...
'Tag','pushbutton2','CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
lidTag = 'pushbutton3';
h5 = uicontrol('Parent',h3,'Units','characters',...
'Callback',@(hObject,eventdata)Road_Excitation('pushbutton3_Callback',...
hObject,eventdata,guidata(hObject)),'FontSize',...
12,'Position',[26.2 0.55 11.2 1.8],'String',...
'保存','Tag','pushbutton3','CreateFcn', ...
{@local_CreateFcn, blanks(0), appdata} );
appdata = [];
lidTag = 'uipanel3';
h6 = uipanel('Parent',h1,'Units','characters',...
'FontSize',12,'ForegroundColor',[1 0 1],...
'Title','参数输入(右击输入):','Clipping',...
'on','BackgroundColor',[0.75 0.85 0.78],...
'Position',[2.2 6.05 44.6 20],'Tag','uipanel3',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
lidTag = 'text11';
h7 = uicontrol('Parent',h6,'Units','characters',...
'BackgroundColor',[0.75 0.86 0.77],'FontSize',12,...
'Position',[29.85 14.95 12.85 1.35],'String',...
'(单位s)','Style','text','Tag','text11',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
lidTag = 'Text1';
h8 = uicontrol('Parent',h6,'Units','characters',...
'BackgroundColor',[0.75 0.86 0.77],...
'FontSize',12,'HorizontalAlignment','right',...
'Position',[5.28571428571428 14.95 15 1.35],...
'String','仿真时长:','Style','text','Tag','Text1',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
lidTag = 'T';
h9 = uicontrol('Parent',h6,'Units','characters',...
'BackgroundColor',[0.89 0.94 0.90],'Callback',...
@(hObject,eventdata)Road_Excitation('T_Callback',...
hObject,eventdata,guidata(hObject)),'Enable',...
基于滤波白噪声法的路面激励生成软件V1.0 源代码
9
'inactive','FontSize',12,'ForegroundColor',...
[0.63 0.078 0.18],'Position',[19.42 14.9 11.57 1.45],...
'String','输入T','Style','edit','ButtonDownFcn',...
@(hObject,eventdata)Road_Excitation('T_ButtonDownFcn',...
hObject,eventdata,guidata(hObject)),...
'CreateFcn', {@local_CreateFcn,...
@(hObject,eventdata)Road_Excitation('T_CreateFcn',...
hObject,eventdata,guidata(hObject)),...
appdata} ,'Tag','T');
appdata = [];
lidTag = 'text21';
h10 = uicontrol('Parent',h6,'Units','characters',...
'BackgroundColor',[0.75 0.86 0.77],'FontSize',...
12,'Position',[29.85 12.65 12.85 1.35],...
'String','(单位s)','Style','text','Tag','text21',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
lidTag = 'text20';
h11 = uicontrol('Parent',h6,'Units','characters',...
'BackgroundColor',[0.75 0.86 0.77],...
'FontSize',12,'HorizontalAlignment',...
'right','Position',[3.42 12.65 16.85 1.35],...
'String','时间间隔:','Style','text','Tag','text20',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
lidTag = 'dt';
h12 = uicontrol('Parent',h6,'Units','characters',...
'BackgroundColor',[0.89 0.94 0.90],...
'Callback',@(hObject,eventdata)Road_Excitation('dt_Callback',...
hObject,eventdata,guidata(hObject)),...
'Enable','inactive','FontSize',12,'ForegroundColor',...
[0.63 0.078 0.18],'Position',[19.42 12.6 11.56 1.45],...
'String','输入dt','Style','edit','ButtonDownFcn',...
@(hObject,eventdata)Road_Excitation('dt_ButtonDownFcn',...
hObject,eventdata,guidata(hObject)),...
'CreateFcn', {@local_CreateFcn, ...
@(hObject,eventdata)Road_Excitation('dt_CreateFcn',...
hObject,eventdata,guidata(hObject)), appdata} ,...
'Tag','dt');
appdata = [];
lidTag = 'text13';
h13 = uicontrol('Parent',h6,'Units','characters',...
'BackgroundColor',[0.75 0.86 0.77],...
'FontSize',12,'Position',[28.85 10.35 12.85 1.35],...
'String','(A-H)','Style','text','Tag','text13',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
lidTag = 'text2';
h14 = uicontrol('Parent',h6,'Units','characters',...
'BackgroundColor',[0.75 0.86 0.77],...
基于滤波白噪声法的路面激励生成软件V1.0 源代码
10
'FontSize',12,'HorizontalAlignment','right',...
'Position',[3.42 10.35 16.85 1.35],...
'String','路面等级:','Style','text','Tag','text2',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
lidTag = 'grade';
h15 = uicontrol('Parent',h6,'Units','characters',...
'BackgroundColor',[0.89 0.94 0.90],...
'Callback',@(hObject,eventdata)Road_Excitation('grade_Callback',...
hObject,eventdata,guidata(hObject)),...
'Enable','inactive','FontSize',12,'ForegroundColor',...
[0.63 0.078 0.18],'Position',[19.42 10.3 11.57 1.45],...
'String','输入等级','Style','edit','ButtonDownFcn',...
@(hObject,eventdata)Road_Excitation('grade_ButtonDownFcn',...
hObject,eventdata,guidata(hObject)),...
'CreateFcn', {@local_CreateFcn,
@(hObject,eventdata)Road_Excitation('grade_CreateFcn',...
hObject,eventdata,guidata(hObject)), appdata} ,...
'Tag','grade');
appdata = [];
lidTag = 'text14';
h16 = uicontrol('Parent',h6,'Units','characters',...
'BackgroundColor',[0.75 0.86 0.77],...
'FontSize',12,'Position',[29.28 7.95 12.85 1.35],...
'String','(km/h)','Style','text',...
'Tag','text14','CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
lidTag = 'text3';
h17 = uicontrol('Parent',h6,'Units','characters',...
'BackgroundColor',[0.75 0.86 0.77],...
'FontSize',12,'HorizontalAlignment','right',...
'Position',[2 7.95 18.42 1.35],...
'String','车辆速度:','Style','text','Tag','text3',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
lidTag = 'u';
h18 = uicontrol('Parent',h6,'Units','characters',...
'BackgroundColor',[0.89 0.94 0.90],...
'Callback',@(hObject,eventdata)Road_Excitation('u_Callback',...
hObject,eventdata,guidata(hObject)),...
'Enable','inactive','FontSize',12,'ForegroundColor',...
[0.63 0.078 0.18],'Position',[19.42 7.90 11.57 1.45],...
'String','输入u','Style','edit','ButtonDownFcn',...
@(hObject,eventdata)Road_Excitation('u_ButtonDownFcn',...
hObject,eventdata,guidata(hObject)),...
'CreateFcn', {@local_CreateFcn,
@(hObject,eventdata)Road_Excitation('u_CreateFcn',...
hObject,eventdata,guidata(hObject)), appdata} ,...
'Tag','u');
appdata = [];
基于滤波白噪声法的路面激励生成软件V1.0 源代码
11
lidTag = 'text16';
h19 = uicontrol('Parent',h6,'Units','characters',...
'BackgroundColor',[0.75 0.86 0.77],...
'FontSize',12,'Position',[29.85 5.50 13.71 1.35],
'String','(单位m)','Style','text','Tag',...
'text16','CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
lidTag = 'text4';
h20 = uicontrol('Parent',h6,'Units','characters',...
'BackgroundColor',[0.75 0.86 0.77],...
'FontSize',12,'HorizontalAlignment','right',...
'Position',[1.85 5.50 18.57 1.35],...
'String','前后轴距:','Style','text','Tag','text4',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
lidTag = 'L';
h21 = uicontrol('Parent',h6,'Units','characters',...
'BackgroundColor',[0.89 0.94 0.90],...
'Callback',@(hObject,eventdata)Road_Excitation('L_Callback',...
hObject,eventdata,guidata(hObject)),...
'Enable','inactive','FontSize',12,'ForegroundColor',...
[0.63 0.078 0.18],'Position',[19.42 5.45 11.57 1.45],...
'String','输入L','Style','edit','ButtonDownFcn',...
@(hObject,eventdata)Road_Excitation('L_ButtonDownFcn',...
hObject,eventdata,guidata(hObject)),...
'CreateFcn', {@local_CreateFcn, ...
@(hObject,eventdata)Road_Excitation('L_CreateFcn',...
hObject,eventdata,guidata(hObject)), appdata} ,'Tag','L');
appdata = [];
lidTag = 'text17';
h22 = uicontrol('Parent',h6,'Units','characters',...
'BackgroundColor',[0.75 0.86 0.77],'FontSize',12,...
'Position',[30 3.10 13.71 1.35],...
'String','(单位m)','Style','text','Tag','text17',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
lidTag = 'text5';
h23 = uicontrol('Parent',h6,'Units','characters',...
'BackgroundColor',[0.75 0.86 0.77],...
'FontSize',12,'HorizontalAlignment','right',...
'Position',[0.42 3.15 19.85 1.35],...
'String','前轴左右轮距:','Style','text','Tag','text5',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
lidTag = 'Bf';
h24 = uicontrol('Parent',h6,'Units','characters',...
'BackgroundColor',[0.89 0.94 0.90],...
'Callback',@(hObject,eventdata)Road_Excitation('Bf_Callback',...
hObject,eventdata,guidata(hObject)),...
'Enable','inactive','FontSize',12,'ForegroundColor',...
基于滤波白噪声法的路面激励生成软件V1.0 源代码
12
[0.63 0.078 0.18],'Position',[19.42 3.05 11.57 1.45],...
'String','输入Bf',...'Style','edit','ButtonDownFcn',...
@(hObject,eventdata)Road_Excitation('Bf_ButtonDownFcn',...
hObject,eventdata,guidata(hObject)),...
'CreateFcn', {@local_CreateFcn, ...
@(hObject,eventdata)Road_Excitation('Bf_CreateFcn',hObject,...
eventdata,guidata(hObject)), appdata} ,'Tag','Bf');
appdata = [];
lidTag = 'text18';
h25 = uicontrol('Parent',h6,'Units','characters',...
'BackgroundColor',[0.75 0.86 0.77],'FontSize',12,...
'Position',[30 0.75 13.71 1.35],...
'String','(单位m)','Style','text','Tag','text18',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
lidTag = 'text6';
h26 = uicontrol('Parent',h6,'Units','characters',...
'BackgroundColor',[0.75 0.86 0.77],'FontSize',12,...
'HorizontalAlignment','right','Position',[0.42 0.75 19.85 1.35],...
'String','后轴左右轮距:','Style','text','Tag','text6','CreateFcn',...
{@local_CreateFcn, blanks(0), appdata} );
appdata = [];
lidTag = 'Br';
h27 = uicontrol('Parent',h6,'Units','characters',...
'BackgroundColor',[0.89 0.94 0.90],...
'Callback',@(hObject,eventdata)Road_Excitation('Br_Callback',...
hObject,eventdata,guidata(hObject)),...
'Enable','inactive','FontSize',12,'ForegroundColor',...
[0.63 0.078 0.18],'Position',[19.42 0.70 11.57 1.45],...
'String','输入Br','Style','edit','ButtonDownFcn',...
@(hObject,eventdata)Road_Excitation('Br_ButtonDownFcn',...
hObject,eventdata,guidata(hObject)),...
'CreateFcn', {@local_CreateFcn, ...
@(hObject,eventdata)Road_Excitation('Br_CreateFcn',...
hObject,eventdata,guidata(hObject)), appdata} ,'Tag','Br');
appdata = [];
lidTag = 'text26';
h28 = uicontrol('Parent',h6,'Units','characters',...
'BackgroundColor',[0.75 0.86 0.77],'FontSize',12,...
'ForegroundColor',[0 0 1],'HorizontalAlignment',...
'right','Position',[0.42 16.95 14.14 1.35],...
'String','模式选择:','Style','text','Tag','text26',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
lidTag = 'radiobutton2';
h29 = uicontrol('Parent',h6,'Units','characters',...
'BackgroundColor',[0.75 0.86 0.77],'Callback',...
@(hObject,eventdata)Road_Excitation('radiobutton2_Callback',...
hObject,eventdata,guidata(hObject)),'FontSize',10,...
'Position',[13.42 16.85 8.85 1.6],'String','单轮','Style','radiobutton',...
基于滤波白噪声法的路面激励生成软件V1.0 源代码
13
'Tag','radiobutton2','CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
lidTag = 'radiobutton3';
h30 = uicontrol('Parent',h6,'Units','characters',...
'BackgroundColor',[0.75 0.86 0.77],'Callback',...
@(hObject,eventdata)Road_Excitation('radiobutton3_Callback',...
hObject,eventdata,guidata(hObject)),...
'FontSize',10,'Position',[22 16.85 13.85 1.6],...
'String','前后双轮','Style','radiobutton',...
'Tag','radiobutton3','CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
lidTag = 'radiobutton4';
h31 = uicontrol('Parent',h6,'Units','characters',...
'BackgroundColor',[0.75 0.86 0.77],'Callback',...
@(hObject,eventdata)Road_Excitation('radiobutton4_Callback',...
hObject,eventdata,guidata(hObject)),...
'FontSize',10,'Position',[35 16.85 8.85 1.6],...
'String','四轮','Style','radiobutton',...
'Tag','radiobutton4','CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
lidTag = 'axes1';
h32 = axes('Parent',h1,'Units','characters','Position',...
[57 16.40 34 8.35],'CameraPosition',[0.5 0.5 9.16],...
'CameraPositionMode',get(0,'defaultaxesCameraPositionMode'),
'Color',get(0,'defaultaxesColor'),'ColorOrder',...
get(0,'defaultaxesColorOrder'),'LooseInset',[14.57 3.553 10.65 2.42],...
'XColor',get(0,'defaultaxesXColor'),'YColor',get(0,'defaultaxesYColor'),...
'ZColor',get(0,'defaultaxesZColor'),'Tag','axes1',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
h33 = get(h32,'title');
set(h33,'Parent',h32,'Units','data','FontUnits','points',...
'BackgroundColor','none','Color',[0 0 0],'DisplayName',...
blanks(0),'EdgeColor','none','EraseMode','normal','DVIMode',...
'auto','FontAngle','normal','FontName','Helvetica','FontSize',10,...
'FontWeight','normal','HorizontalAlignment','center',...
'LineStyle','-','LineWidth',0.5,'Margin',2,'Position',[0.49 1.04 1.00],...
'Rotation',0,'String',blanks(0),'Interpreter','tex','VerticalAlignment','bottom',...
'ButtonDownFcn',[],'CreateFcn', {@local_CreateFcn, [], ''} ,'DeleteFcn',[],...
'BusyAction','queue','HandleVisibility','off','HelpTopicKey',blanks(0),'HitTest','on',...
'Interruptible','on','SelectionHighlight','on','Serializable','on','Tag',blanks(0),'UserData',[],...
'Visible','on','XLimInclude','on','YLimInclude','on','ZLimInclude','on','CLimInclude','on',...
'ALimInclude','on','IncludeRenderer','on','Clipping','off');
h34 = get(h32,'xlabel');
set(h34,'Parent',h32,'Units','data','FontUnits','points','BackgroundColor','none',...
'Color',[0 0 0],'DisplayName',blanks(0),'EdgeColor','none','EraseMode','normal',...
'DVIMode','auto','FontAngle','normal','FontName','Helvetica','FontSize',10,...
'FontWeight','normal','HorizontalAlignment','center','LineStyle','-',...
'LineWidth',0.5,'Margin',2,'Position',[0.49 -0.16 1.00],'Rotation',0,'String',blanks(0),...
'Interpreter','tex','VerticalAlignment','cap','ButtonDownFcn',[],'CreateFcn',
{@local_CreateFcn, [], ''} ,'DeleteFcn',[],'BusyAction','queue',...
基于滤波白噪声法的路面激励生成软件V1.0 源代码
14
'HandleVisibility','off','HelpTopicKey',blanks(0),'HitTest','on',...
'Interruptible','on','SelectionHighlight','on','Serializable','on','Tag',blanks(0),...
'UserData',[],'Visible','on','XLimInclude','on','YLimInclude','on','ZLimInclude','on',...
'CLimInclude','on','ALimInclude','on','IncludeRenderer','on','Clipping','off');
h35 = get(h32,'ylabel');
set(h35,'Parent',h32,'Units','data','FontUnits','points','BackgroundColor','none',...
'Color',[0 0 0],'DisplayName',blanks(0),'EdgeColor','none','EraseMode','normal',...
'DVIMode','auto','FontAngle','normal','FontName','Helvetica','FontSize',10,...
'FontWeight','normal','HorizontalAlignment','center','LineStyle','-','LineWidth',0.5,...
'Margin',2,'Position',[-0.14 0.49 1.00],'Rotation',90,'String',blanks(0),'Interpreter','tex',...
'VerticalAlignment','bottom','ButtonDownFcn',[],'CreateFcn', {@local_CreateFcn, [], ''} ,...
'DeleteFcn',[],'BusyAction','queue','HandleVisibility','off','HelpTopicKey',blanks(0),...
'HitTest','on','Interruptible','on','SelectionHighlight','on','Serializable','on','Tag',blanks(0),...
'UserData',[],'Visible','on','XLimInclude','on','YLimInclude','on','ZLimInclude','on',...
'CLimInclude','on','ALimInclude','on','IncludeRenderer','on','Clipping','off');
h36 = get(h32,'zlabel');
set(h36,'Parent',h32,'Units','data','FontUnits','points','BackgroundColor','none',...
'Color',[0 0 0],'DisplayName',blanks(0),'EdgeColor','none','EraseMode','normal',...
'DVIMode','auto','FontAngle','normal','FontName','Helvetica','FontSize',10,...
'FontWeight','normal','HorizontalAlignment','right','LineStyle','-','LineWidth',0.5,...
'Margin',2,'Position',[-1.67 1.36 1.00],'Rotation',0,'String',blanks(0),'Interpreter','tex',...
'VerticalAlignment','middle','ButtonDownFcn',[],'CreateFcn', {@local_CreateFcn, [], ''} ,...
'DeleteFcn',[],'BusyAction','queue','HandleVisibility','off','HelpTopicKey',blanks(0),...
'HitTest','on','Interruptible','on','SelectionHighlight','on','Serializable','on','Tag',blanks(0),...
'UserData',[],'Visible','off','XLimInclude','on','YLimInclude','on','ZLimInclude','on',...
'CLimInclude','on','ALimInclude','on','IncludeRenderer','on','Clipping','off');
appdata = [];
lidTag = 'listbox1';
h37 = uicontrol('Parent',h1,'Units','characters',...
'BackgroundColor',[0.8 0.8 0.8],'Callback','%automatic',...
'FontSize',14,'ForegroundColor',[0 0 1],'Position',[2.28 26.05 136.71 1.45],...
'String','','Style','text','Value',1,'CreateFcn', {@local_CreateFcn, ...
@(hObject,eventdata)Road_Excitation('listbox1_CreateFcn',hObject,...
eventdata,guidata(hObject)), appdata} ,'Tag','listbox1');
appdata = [];
lidTag = 'axes5';
h38 = axes('Parent',h1,'Units','characters','Position',...
[103.28 16.40 34 8.35],'CameraPosition',[0.5 0.5 9.16],...
'CameraPositionMode',get(0,'defaultaxesCameraPositionMode'),...
'Color',get(0,'defaultaxesColor'),'ColorOrder',get(0,'defaultaxesColorOrder'),...
'LooseInset',[14.57 3.553 10.65 2.42],'XColor',get(0,'defaultaxesXColor'),...
'YColor',get(0,'defaultaxesYColor'),'ZColor',get(0,'defaultaxesZColor'),...
'Tag','axes5','CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
h39 = get(h38,'title');
set(h39,'Parent',h38,'Units','data','FontUnits','points','BackgroundColor',...
'none','Color',[0 0 0],'DisplayName',blanks(0),'EdgeColor','none',...
'EraseMode','normal','DVIMode','auto','FontAngle','normal',...
'FontName','Helvetica','FontSize',10,'FontWeight','normal',...
'HorizontalAlignment','center','LineStyle','-','LineWidth',0.5,...
'Margin',2,'Position',[0.49 1.04 1.00],'Rotation',0,'String',...
基于滤波白噪声法的路面激励生成软件V1.0 源代码
15
blanks(0),'Interpreter','tex','VerticalAlignment','bottom',...
'ButtonDownFcn',[],'CreateFcn', {@local_CreateFcn, [], ''} ,...
'DeleteFcn',[],'BusyAction','queue','HandleVisibility','off',...
'HelpTopicKey',blanks(0),'HitTest','on','Interruptible','on',...
'SelectionHighlight','on',.'Serializable','on','Tag',blanks(0),'UserData',[],..
'Visible','on','XLimInclude','on','YLimInclude','on','ZLimInclude',...
'on','CLimInclude','on','ALimInclude','on','IncludeRenderer','on','Clipping','off');
h40 = get(h38,'xlabel');
set(h40,'Parent',h38,'Units','data','FontUnits','points',...
'BackgroundColor','none','Color',[0 0 0],'DisplayName',...
blanks(0),'EdgeColor','none','EraseMode','normal','DVIMode','auto',...
'FontAngle','normal','FontName','Helvetica','FontSize',10,'FontWeight',...
'normal','HorizontalAlignment','center','LineStyle','-','LineWidth',0.5,...
'Margin',2,'Position',[0.49 -0.16 1.00],'Rotation',0,'String',blanks(0),...
'Interpreter','tex','VerticalAlignment','cap','ButtonDownFcn',[],'CreateFcn', ...
{@local_CreateFcn, [], ''} ,'DeleteFcn',[],'BusyAction','queue','HandleVisibility','off',...
'HelpTopicKey',blanks(0),'HitTest','on','Interruptible','on','SelectionHighlight','on',...
'Serializable','on','Tag',blanks(0),'UserData',[],'Visible','on','XLimInclude','on',...
'YLimInclude','on','ZLimInclude','on','CLimInclude','on','ALimInclude','on',...
'IncludeRenderer','on','Clipping','off');
h41 = get(h38,'ylabel');
set(h41,'Parent',h38,'Units','data','FontUnits','points','BackgroundColor',...
'none','Color',[0 0 0],'DisplayName',blanks(0),'EdgeColor','none',...
'EraseMode','normal','DVIMode','auto','FontAngle','normal',...
'FontName','Helvetica','FontSize',10,'FontWeight','normal',...
'HorizontalAlignment','center','LineStyle','-','LineWidth',0.5,...
'Margin',2,'Position',[-0.14 0.49 1.00],'Rotation',90,'String',blanks(0),...
'Interpreter','tex','VerticalAlignment','bottom','ButtonDownFcn',[],...
'CreateFcn', {@local_CreateFcn, [], ''} ,'DeleteFcn',[],'BusyAction',...
'queue','HandleVisibility','off','HelpTopicKey',blanks(0),'HitTest','on',...
'Interruptible','on','SelectionHighlight','on','Serializable','on','Tag',blanks(0),...
'UserData',[],'Visible','on','XLimInclude','on','YLimInclude','on','ZLimInclude','on',...
'CLimInclude','on','ALimInclude','on','IncludeRenderer','on','Clipping','off');
h42 = get(h38,'zlabel');
set(h42,'Parent',h38,'Units','data','FontUnits','points','BackgroundColor','none',...
'Color',[0 0 0],'DisplayName',blanks(0),'EdgeColor','none','EraseMode','normal',...
'DVIMode','auto','FontAngle','normal','FontName','Helvetica','FontSize',10,...
'FontWeight','normal','HorizontalAlignment','right','LineStyle','-',...
'LineWidth',0.5,'Margin',2,'Position',[-3.03 1.36 1.00],'Rotation',0,'String',blanks(0),...
'Interpreter','tex','VerticalAlignment','middle','ButtonDownFcn',[],...
'CreateFcn', {@local_CreateFcn, [], ''} ,'DeleteFcn',[],'BusyAction','queue',...
'HandleVisibility','off','HelpTopicKey',blanks(0),'HitTest','on','Interruptible','on',...
'SelectionHighlight','on','Serializable','on','Tag',blanks(0),'UserData',[],...
'Visible','off','XLimInclude','on','YLimInclude','on','ZLimInclude','on',...
'CLimInclude','on','ALimInclude','on','IncludeRenderer','on','Clipping','off');
appdata = [];
lidTag = 'text24';
h43 = uicontrol('Parent',h1,'Units','characters',
'BackgroundColor',[0.8 0.8 0.8],'Callback','%automatic','Callback','%automatic',...
'FontSize',14,'ForegroundColor',[0 0 1],'Position',[2.28 0.6 136.71 1.45],...
基于滤波白噪声法的路面激励生成软件V1.0 源代码
16
'String','运行状态提示','Style','text','Value',1,'Tag','text24',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
lidTag = 'axes6';
h44 = axes('Parent',h1,'Units','characters',
'Position',[103.42 4.90 34 8.35],'CameraPosition',...
[0.5 0.5 9.16],'CameraPositionMode',get(0,'defaultaxesCameraPositionMode'),...
'Color',get(0,'defaultaxesColor'),'ColorOrder',get(0,'defaultaxesColorOrder'),...
'LooseInset',[14.57 3.55 10.65],'XColor',get(0,'defaultaxesXColor'),'YColor',...
get(0,'defaultaxesYColor'),'ZColor',get(0,'defaultaxesZColor'),'Tag','axes6',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
h45 = get(h44,'title');
set(h45,'Parent',h44,'Units','data','FontUnits','points','BackgroundColor','none',...
'Color',[0 0 0],'DisplayName',blanks(0),'EdgeColor','none','EraseMode','normal',...
'DVIMode','auto','FontAngle','normal','FontName','Helvetica','FontSize',10,...
'FontWeight','normal','HorizontalAlignment','center','LineStyle','-','LineWidth',0.5,...
'Margin',2,'Position',[0.49 1.04 1.00],'Rotation',0,'String',blanks(0),'Interpreter','tex',...
'VerticalAlignment','bottom','ButtonDownFcn',[],'CreateFcn', {@local_CreateFcn, [], ''} ,...
'DeleteFcn',[],'BusyAction','queue','HandleVisibility','off','HelpTopicKey',blanks(0),...
'HitTest','on','Interruptible','on','SelectionHighlight','on','Serializable','on',...
'Tag',blanks(0),'UserData',[],'Visible','on','XLimInclude','on','YLimInclude','on',...
'ZLimInclude','on','CLimInclude','on','ALimInclude','on',...
'IncludeRenderer','on','Clipping','off');
h46 = get(h44,'xlabel');
set(h46,'Parent',h44,'Units','data','FontUnits','points','BackgroundColor','none',...
'Color',[0 0 0],'DisplayName',blanks(0),'EdgeColor','none','EraseMode','normal',...
'DVIMode','auto','FontAngle','normal','FontName','Helvetica','FontSize',10,...
'FontWeight','normal','HorizontalAlignment','center','LineStyle','-',...
'LineWidth',0.5,'Margin',2,'Position',[0.49 -0.16 1.00],'Rotation',0,...
'String',blanks(0),'Interpreter','tex','VerticalAlignment','cap','ButtonDownFcn',[],...
'CreateFcn', {@local_CreateFcn, [], ''} ,'DeleteFcn',[],'BusyAction','queue',...
'HandleVisibility','off','HelpTopicKey',blanks(0),'HitTest','on','Interruptible','on',...
'SelectionHighlight','on','Serializable','on','Tag',blanks(0),'UserData',[],...
'Visible','on','XLimInclude','on','YLimInclude','on','ZLimInclude','on',...
'CLimInclude','on','ALimInclude','on','IncludeRenderer','on','Clipping','off');
h47 = get(h44,'ylabel');
set(h47,'Parent',h44,'Units','data','FontUnits','points','BackgroundColor','none',...
'Color',[0 0 0],'DisplayName',blanks(0),'EdgeColor','none','EraseMode','normal',...
'DVIMode','auto','FontAngle','normal','FontName','Helvetica','FontSize',10,...
'FontWeight','normal','HorizontalAlignment','center','LineStyle','-','LineWidth',0.5,...
'Margin',2,'Position',[-0.14 0.49 1.00],'Rotation',90,'String',blanks(0),...
'Interpreter','tex','VerticalAlignment','bottom','ButtonDownFcn',[],...
'CreateFcn', {@local_CreateFcn, [], ''} ,'DeleteFcn',[],'BusyAction','queue',...
'HandleVisibility','off','HelpTopicKey',blanks(0),'HitTest','on',...
'Interruptible','on','SelectionHighlight','on','Serializable','on','Tag',blanks(0),...
'UserData',[],'Visible','on','XLimInclude','on','YLimInclude','on','ZLimInclude','on',...
'CLimInclude','on','ALimInclude','on','IncludeRenderer','on','Clipping','off');
h48 = get(h44,'zlabel');
set(h48,'Parent',h44,'Units','data','FontUnits','points','BackgroundColor','none',...
'Color',[0 0 0],'DisplayName',blanks(0),'EdgeColor','none','EraseMode','normal',...
基于滤波白噪声法的路面激励生成软件V1.0 源代码
17
'DVIMode','auto','FontAngle','normal','FontName','Helvetica',...
'FontSize',10,'FontWeight','normal','HorizontalAlignment','right',...
'LineStyle','-','LineWidth',0.5,'Margin',2,'Position',[-3.04 2.73 1.00],...
'Rotation',0,'String',blanks(0),'Interpreter','tex','VerticalAlignment','middle',...
'ButtonDownFcn',[],'CreateFcn', {@local_CreateFcn, [], ''} ,'DeleteFcn',[],...
'BusyAction','queue','HandleVisibility','off','HelpTopicKey',blanks(0),...
'HitTest','on','Interruptible','on','SelectionHighlight','on','Serializable','on',...
'Tag',blanks(0),'UserData',[],'Visible','off','XLimInclude','on','YLimInclude','on',...
'ZLimInclude','on','CLimInclude','on','ALimInclude','on','IncludeRenderer','on',...
'Clipping','off');
appdata = [];
lidTag = 'axes4';
h49 = axes('Parent',h1,'Units','characters','Position',[57.14 4.85 34 8.35],...
'CameraPosition',[0.5 0.5 9.16],'CameraPositionMode',...
get(0,'defaultaxesCameraPositionMode'),'Color',get(0,'defaultaxesColor'),...
'ColorOrder',get(0,'defaultaxesColorOrder'),'LooseInset',...
[14.57 3.55 10.65 2.42],'XColor',get(0,'defaultaxesXColor'),...
'YColor',get(0,'defaultaxesYColor'),'ZColor',get(0,'defaultaxesZColor'),...
'Tag','axes4','CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
h50 = get(h49,'title');
set(h50,'Parent',h49,'Units','data','FontUnits','points','BackgroundColor','none',...
'Color',[0 0 0],'DisplayName',blanks(0),'EdgeColor','none','EraseMode','normal',...
'DVIMode','auto','FontAngle','normal','FontName','Helvetica','FontSize',10,...
'FontWeight','normal','HorizontalAlignment','center','LineStyle','-',...
'LineWidth',0.5,'Margin',2,'Position',[0.49 1.04 1.00],'Rotation',0,...
'String',blanks(0),'Interpreter','tex','VerticalAlignment','bottom',...
'ButtonDownFcn',[],'CreateFcn', {@local_CreateFcn, [], ''} ,'DeleteFcn',[],...
'BusyAction','queue','HandleVisibility','off','HelpTopicKey',blanks(0),...
'HitTest','on','Interruptible','on','SelectionHighlight','on','Serializable','on',...
'Tag',blanks(0),'UserData',[],'Visible','on','XLimInclude','on','YLimInclude','on',...
'ZLimInclude','on','CLimInclude','on','ALimInclude','on','IncludeRenderer','on','Clipping','off');
h51 = get(h49,'xlabel');
set(h51,'Parent',h49,'Units','data','FontUnits','points','BackgroundColor','none',...
'Color',[0 0 0],'DisplayName',blanks(0),'EdgeColor','none','EraseMode','normal',...
'DVIMode','auto','FontAngle','normal','FontName','Helvetica','FontSize',10,...
'FontWeight','normal','HorizontalAlignment','center','LineStyle','-','LineWidth',0.5,...
'Margin',2,'Position',[0.49 -0.16 1.00],'Rotation',0,'String',blanks(0),'Interpreter','tex',...
'VerticalAlignment','cap','ButtonDownFcn',[],'CreateFcn', {@local_CreateFcn, [], ''} ,...
'DeleteFcn',[],'BusyAction','queue','HandleVisibility','off','HelpTopicKey',blanks(0),...
'HitTest','on','Interruptible','on','SelectionHighlight','on','Serializable','on',...
'Tag',blanks(0),'UserData',[],'Visible','on','XLimInclude','on','YLimInclude','on',...
'ZLimInclude','on','CLimInclude','on','ALimInclude','on','IncludeRenderer','on','Clipping','off');
h52 = get(h49,'ylabel');
set(h52,'Parent',h49,'Units','data','FontUnits','points','BackgroundColor','none',...
'Color',[0 0 0],'DisplayName',blanks(0),'EdgeColor','none','EraseMode','normal',...
'DVIMode','auto','FontAngle','normal','FontName','Helvetica','FontSize',10,...
'FontWeight','normal','HorizontalAlignment','center','LineStyle','-',...
'LineWidth',0.5,'Margin',2,'Position',[-0.14 0.49 1.00],'Rotation',90,...
'String',blanks(0),'Interpreter','tex','VerticalAlignment','bottom','ButtonDownFcn',[],...
'CreateFcn', {@local_CreateFcn, [], ''} ,'DeleteFcn',[],'BusyAction','queue',...
基于滤波白噪声法的路面激励生成软件V1.0 源代码
18
'HandleVisibility','off','HelpTopicKey',blanks(0),'HitTest','on','Interruptible','on',...
'SelectionHighlight','on','Serializable','on','Tag',blanks(0),'UserData',[],'Visible','on',...
'XLimInclude','on','YLimInclude','on','ZLimInclude','on','CLimInclude','on',...
'ALimInclude','on','IncludeRenderer','on','Clipping','off');
h53 = get(h49,'zlabel');
set(h53,'Parent',h49,'Units','data','FontUnits','points','BackgroundColor','none',...
'Color',[0 0 0],'DisplayName',blanks(0),'EdgeColor','none','EraseMode','normal',...
'DVIMode','auto','FontAngle','normal','FontName','Helvetica','FontSize',10,...
'FontWeight','normal','HorizontalAlignment','right','LineStyle','-','LineWidth',0.5,...
'Margin',2,'Position',[-1.68 2.74 1.00],'Rotation',0,'String',blanks(0),...
'Interpreter','tex','VerticalAlignment','middle','ButtonDownFcn',[],...
'CreateFcn', {@local_CreateFcn, [], ''} ,'DeleteFcn',[],'BusyAction','queue',...
'HandleVisibility','off','HelpTopicKey',blanks(0),'HitTest','on','Interruptible','on',...
'SelectionHighlight','on','Serializable','on','Tag',blanks(0),'UserData',[],...
'Visible','off','XLimInclude','on','YLimInclude','on','ZLimInclude','on',...
'CLimInclude','on','ALimInclude','on','IncludeRenderer','on','Clipping','off');
hsingleton = h1;
function local_CreateFcn(hObject, eventdata, createfcn, appdata)
if ~isempty(appdata)
names = fieldnames(appdata);
for i=1:length(names)
name = char(names(i));
setappdata(hObject, name, getfield(appdata,name));
end
end
if ~isempty(createfcn)
if isa(createfcn,'function_handle')
createfcn(hObject, eventdata);
else
eval(createfcn);
end
end
function varargout = gui_mainfcn(gui_State, varargin)
gui_StateFields = {'gui_Name'
'gui_Singleton'
'gui_OpeningFcn'
'gui_OutputFcn'
'gui_LayoutFcn'
'gui_Callback'};
gui_Mfile = '';
for i=1:length(gui_StateFields)
if ~isfield(gui_State, gui_StateFields{i})
error(message('MATLAB:guide:StateFieldNotFound', gui_StateFields{ i }, gui_Mfile));
elseif isequal(gui_StateFields{i}, 'gui_Name')
gui_Mfile = [gui_State.(gui_StateFields{i}), '.m'];
end
end
numargin = length(varargin);
if numargin == 0
gui_Create = true;
基于滤波白噪声法的路面激励生成软件V1.0 源代码
19
elseif local_isInvokeActiveXCallback(gui_State, varargin{:})
vin{1} = gui__Name;
vin{2} = [get(varargin{1}.Peer, 'Tag'), '_', varargin{end}];
vin{3} = varargin{1};
vin{4} = varargin{end-1};
vin{5} = guidata(varargin{1}.Peer);
feval(vin{:});
return;
elseif local_isInvokeHGCallback(gui_State, varargin{:})
gui_Create = false;
else
gui_Create = true;
end
if ~gui_Create
designEval = false;
if (numargin>1 && ishghandle(varargin{2}))
fig = varargin{2};
while ~isempty(fig) && ~ishghandle(fig,'figure')
fig = get(fig,'parent');
end
designEval = isappdata(0,'CreatingGUIDEFigure') || (isscalar(fig)&&isprop(fig,'GUIDEFigure'));
end
if designEval
beforeChildren = findall(fig);
end
varargin{1} = gui__Callback;
if nargout
[varargout{1:nargout}] = feval(varargin{:});
else
feval(varargin{:});
end
if designEval && ishghandle(fig)
set(setdiff(findall(fig),beforeChildren), 'Serializable','off');
end
else
if gui__Singleton
gui_SingletonOpt = 'reuse';
else
gui_SingletonOpt = 'new';
end
gui_Visible = 'auto';
gui_VisibleInput = '';
for index=1:2:length(varargin)
if length(varargin) == index || ~ischar(varargin{index})
break;
end
len1 = min(length('visible'),length(varargin{index}));
len2 = min(length('off'),length(varargin{index+1}));
if ischar(varargin{index+1}) && strncmpi(varargin{index},'visible',len1) && len2 > 1
if strncmpi(varargin{index+1},'off',len2)
基于滤波白噪声法的路面激励生成软件V1.0 源代码
20
gui_Visible = 'invisible';
gui_VisibleInput = 'off';
elseif strncmpi(varargin{index+1},'on',len2)
gui_Visible = 'visible';
gui_VisibleInput = 'on';
end
end
end
gui_Exported = ~isempty(gui__LayoutFcn);
setappdata(0,genvarname(['OpenGuiWhenRunning_', gui__Name]),1);
if gui_Exported
gui_hFigure = feval(gui__LayoutFcn, gui_SingletonOpt);
if isempty(gui_VisibleInput)
gui_VisibleInput = get(gui_hFigure,'Visible');
end
set(gui_hFigure,'Visible','off')
movegui(gui_hFigure,'onscreen');
else
gui_hFigure = local_openfig(gui__Name, gui_SingletonOpt, gui_Visible);
if isappdata(gui_hFigure, 'InGUIInitialization')
delete(gui_hFigure);
gui_hFigure = local_openfig(gui__Name, gui_SingletonOpt, gui_Visible);
end
end
if isappdata(0, genvarname(['OpenGuiWhenRunning_', gui__Name]))
rmappdata(0,genvarname(['OpenGuiWhenRunning_', gui__Name]));
end
setappdata(gui_hFigure,'InGUIInitialization',1);
gui_Options = getappdata(gui_hFigure,'GUIDEOptions');
gui_ton = gui__Singleton;
if ~isappdata(gui_hFigure,'GUIOnScreen')
if gui_orfig
set(gui_hFigure,'Color', get(0,'DefaultUicontrolBackgroundColor'));
end
data = guidata(gui_hFigure);
handles = guihandles(gui_hFigure);
if ~isempty(handles)
if isempty(data)
data = handles;
else
names = fieldnames(handles);
for k=1:length(names)
data.(char(names(k)))=handles.(char(names(k)));
end
end
end
guidata(gui_hFigure, data);
end
for index=1:2:length(varargin)
if length(varargin) == index || ~ischar(varargin{index})
基于滤波白噪声法的路面激励生成软件V1.0 源代码
21
break;
end
len1 = min(length('visible'),length(varargin{index}));
if ~strncmpi(varargin{index},'visible',len1)
try set(gui_hFigure, varargin{index}, varargin{index+1}), catch break, end
end
end
gui_HandleVisibility = get(gui_hFigure,'HandleVisibility');
if strcmp(gui_HandleVisibility, 'callback')
set(gui_hFigure,'HandleVisibility', 'on');
end
feval(gui__OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});
if isscalar(gui_hFigure) && ishghandle(gui_hFigure)
guidemfile('restoreToolbarToolPredefinedCallback',gui_hFigure);
set(gui_hFigure,'HandleVisibility', gui_HandleVisibility);
if ~gui_Exported
gui_hFigure = local_openfig(gui__Name, 'reuse',gui_Visible);
elseif ~isempty(gui_VisibleInput)
set(gui_hFigure,'Visible',gui_VisibleInput);
end
if strcmpi(get(gui_hFigure, 'Visible'), 'on')
figure(gui_hFigure);
if gui_ton
setappdata(gui_hFigure,'GUIOnScreen', 1);
end
end
if isappdata(gui_hFigure,'InGUIInitialization')
rmappdata(gui_hFigure,'InGUIInitialization');
end
gui_HandleVisibility = get(gui_hFigure,'HandleVisibility');
if strcmp(gui_HandleVisibility, 'callback')
set(gui_hFigure,'HandleVisibility', 'on');
end
gui_Handles = guidata(gui_hFigure);
else
gui_Handles = [];
end
if nargout
[varargout{1:nargout}] = feval(gui__OutputFcn, gui_hFigure, [], gui_Handles);
else
feval(gui__OutputFcn, gui_hFigure, [], gui_Handles);
end
if isscalar(gui_hFigure) && ishghandle(gui_hFigure)
set(gui_hFigure,'HandleVisibility', gui_HandleVisibility);
end
end
function gui_hFigure = local_openfig(name, singleton, visible)
if nargin('openfig') == 2
基于滤波白噪声法的路面激励生成软件V1.0 源代码
22
gui_OldDefaultVisible = get(0,'defaultFigureVisible');
set(0,'defaultFigureVisible','off');
gui_hFigure = gLegacy(name, singleton);
set(0,'defaultFigureVisible',gui_OldDefaultVisible);
else
gui_hFigure = gLegacy(name, singleton, visible);
if feature('HGUsingMATLABClasses')
peers=findobj(findall(allchild(gui_hFigure)),'type','uicontrol','style','text');
for i=1:length(peers)
if isappdata(peers(i),'Control')
actxproxy(peers(i));
end
end
end
end
function result = local_isInvokeActiveXCallback(gui_State, varargin)
try
result = ispc && iscom(varargin{1}) ...
&& isequal(varargin{1},gcbo);
catch
result = false;
end
function result = local_isInvokeHGCallback(gui_State, varargin)
try
fhandle = functions(gui__Callback);
result = ~isempty(findstr(gui__Name,)) || ...
(ischar(varargin{1}) ...
&& isequal(ishghandle(varargin{2}), 1) ...
&& (~isempty(strfind(varargin{1},[get(varargin{2}, 'Tag'), '_'])) || ...
~isempty(strfind(varargin{1}, '_CreateFcn'))) );
catch
result = false;
end
发布评论