tdof_ss_time_slnk_plot.m

来自「vibration simulation using ansys and mat」· M 代码 · 共 25 行

M
25
字号
	echo off
%	tdof_ss_time_slnk_plot.m  Plotting of results from 
%	tdof_ss_simulink.mdl Simulink run

	plot(tout,dof1,'k+-',tout,dof2,'k*-',tout,dof3,'k')
	title('State Space Simulink Calculation of Displacements of dof 1, 2 and 3')
	xlabel('Time, sec')
	ylabel('Vibration Displacements')
	legend('dof 1','dof 2','dof 3')
	grid

	disp('execution paused to display figure, "enter" to continue'); pause

%	load previous closed-form solutions for tplot, z1, z2, z3	

	load tdof_modal_time_z1z2z3;

	plot(tout,dof1,'k-',tout,dof2,'k-',tout,dof3,'k',tplot,z1,'k.-',tplot,z2,'k.-',tplot,z3,'k.-')
	title('Displacements of dof 1, 2 and 3 from Simulink (slnk) and Closed Form (cf)')
	xlabel('Time, sec')
	ylabel('Vibration Displacements')
	legend('cf dof 1','cf dof 2','cf dof 3','slnk dof 1','slnk dof 2','slnk dof 3')
	grid

	

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?