HW5_1 - '*k',ts,-1.1396,'dk',t,0,'k') title('System...

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

View Full Document Right Arrow Icon
clc close all clear all c t = [0:.001:5.623]; ts = .4039; tf = .2751; phi = 0.0863*exp(-2.476*t) - 0.0863*exp(-3.635*t); phis = 0.086*exp(-2.476*t); phif = -0.086*exp(-3.635*t); phidot = (-2.476*0.0863)*exp(-2.476*t) - (-3.635*0.0863)*exp(-3.635*t); p phideg = phi*180/pi; phisdeg = phis*180/pi; phifdeg = phif*180/pi; phidotdeg = phidot*180/pi; p figure(1) plot(t,phideg,'r',t,phisdeg,'b', t, phifdeg, 'g', ts, 1.819,'ok',ts, .681,
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: '*k',ts,-1.1396,'dk',t,0,'k') title('System Response') xlabel('time (sec)') ylabel('\phi(t) in deg') legend('\phi(t)','\phi_s(t)','\phi_f(t)','\phi(\tau_s)','phi_s(\tau_s)','\phi_f(\ta u_s)') u figure(2) plot(phideg, phidotdeg, '-b') title('Phase plot') xlabel('\phi (t), (deg)') ylabel('\phidot(t), (deg/s)') text(ts, phis_dot_deg, '\leftarrow \tau(s)')...
View Full Document

This document was uploaded on 10/24/2010.

Ask a homework question - tutors are online