HW3_1 - text(ts, dts, '\leftarrow DELTA (ts)') text(ts,...

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

View Full Document Right Arrow Icon
%Homework #3 %Problem #1 % clc clear all close all c tau.s = 0.4950; t t = [0:.01:2*tau.s]; ts = 1./2.02; tf = 1./4.464; ds = -0.4.*exp(-2.*t); df = 0.4.*exp(-4.5.*t); dt = ds + df; dts = -0.4.*exp(-2.*ts) + 0.4.*exp(-4.5.*ts); dsts = -0.4.*exp(-2.*ts); dfts = 0.4.*exp(-4.5.*ts); dftf = 0.4.*exp(-4.5.*tf); d dtdot = 0.8.*exp(-2.*t) - 18.*exp(-4.5.*t); d t0 = 0; dt0 = -0.4.*exp(-2.*t0) + 0.4.*exp(-4.5.*t0) dt0dot = 0.8.*exp(-2.*t0) - 18.*exp(-4.5.*t0) d figure(1) plot(t,dt,'-b',t,ds,'-black',t,df,'-r') title('The fast term , The slow term , The total response') legend('Total Response', 'The Slow Term', 'The Fast Term')
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: text(ts, dts, '\leftarrow DELTA (ts)') text(ts, dsts, '\leftarrow DELTA.s (ts)') text(ts, dfts,'\leftarrow DELTA.f (ts)') text(0, (1/3).*dsts, '\leftarrow (1/3)DELTA.s (0)') text(tf, dftf, '\leftarrow DELTA.f (tf)') text(0, (1/3).*dftf, '\leftarrow (1/3)DELTA.f (0)') xlabel('time, (s)') ylabel('DELTA, (m)') y figure(2) plot(dt, dtdot, '-b') xlabel('The Response, (m)') ylabel('Derivative of DELTA, (m/s)') text(dt0, dt0dot, 'Initial Point') title('Phase Curve') t...
View Full Document

This document was uploaded on 10/24/2010.

Ask a homework question - tutors are online