fig2_40

fig2_40 - zeta^2)*t+acos(zeta));%% Boundary

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% Chapter 2: Figure 2.40% Unforced Response to an Initial Condition% Generates Figure 2.41: Spring-mass-damper unforced response.%y0=0.15;wn=sqrt(2);zeta=1/ (2*sqrt(2));t=[0:0.1:10];%c=(y0/sqrt(1-zeta^2));y=c*exp(-zeta*wn*t).*sin(wn*sqrt(1-
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: zeta^2)*t+acos(zeta));%% Boundary Function%bu=c*exp(-zeta*wn*t);bl=-bu;%% Plot Unforced Response %plot(t,y,t,bu,'k--',t,bl,'k--'),gridxlabel('Time (sec)'),ylabel('y(t) (meters)')legend(['\omega_n=',num2str(wn),' \zeta=',num2str(zeta)])...
View Full Document

Ask a homework question - tutors are online