📄 tdof_ss_time_slnk_plot.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 + -