HW3_4 - h figure(1 plot(t,hct'r t,hpt'b t,ht'black...

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

View Full Document Right Arrow Icon
%Homework #3 %Problem #4 % clc clear all close all c tau = 2.5; t = [0:.01:8.*tau]; t hpt = 0.644.*sin(t - 0.26); hct = exp(-0.4.*t).*(0.329.*sin(1.96.*t) + 3.166.*cos(1.96.*t)); ht = hpt + hct; h hdotpt = 0.644.*cos(t-0.26); hdotct = -0.4.*exp(-0.4.*t).*(0.329.*sin(1.96.*t) + 3.166.*cos(1.96.*t)) + exp(- 0.4.*t).*(0.6484.*cos(1.96.*t) - 6.20536.*sin(1.96.*t)); hdott = hdotpt + hdotct;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: h figure(1) plot(t,hct,'r', t,hpt,'b', t,ht,'black') legend('Transient Response', 'Steady State Response', 'Total Response') title('Response Curve') xlabel('Time, (s)') ylabel('The Response, (m)') y figure(2) plot(ht,hdott,'k') title('The Phase Curve') xlabel('Total Response, (m)') ylabel('Derivative of Total Response, (m/s)')...
View Full Document

This document was uploaded on 10/24/2010.

Ask a homework question - tutors are online