基于matlab实现的弹簧振动系统模型程序(动态模型)完整代码:clear all;%System data m=1.0; zeta=0.01; omega0=1.0; Dt=1.0; f0=1.0; x0=0.0; dotx0=0.0; xmax=sqrt(x0^2+(dotx0/omega0)^2)+min([0.5*abs(f0)*Dt/(m*omega0) f0/omega0^2]); omegad=omega0*sqrt(1-zeta^2); dt0=0.1*pi/omega0; nstep=500;