⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tdof_ss_time_slnk_plot.m

📁 vibration simulation using ansys and matlab 一书中的程序
💻 M
字号:
	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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -