Hw7_1

# Hw7_1 - de_tau = 0.122.*exp(-0.15.*tau); de_period =...

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

% Homework #7 % Problem #1 % Song, Hwan % clc clear all close all c tau = 6.674; p = 9.502; p t = [0:.001:3*tau]; t_o = 0; de = 0.122.*exp(-0.15.*t); dei = -0.122.*exp(-0.15.*t); so = sin(0.661.*t + 1.543); tr = de .* so; t dt = 0.122.*exp(-0.15.*t).*sin(0.661.*t + 1.543); dtdot = -0.0183.*exp(-0.15.*t).*sin(0.661.*t + 1.543) + 0.0806.*exp(- 0.15.*t).*cos(0.661.*t + 1.543); dt_o = 0.122.*exp(-0.15.*t_o).*sin(0.661.*t_o + 1.543); dt_o_dot = -0.0183.*exp(-0.15.*t_o).*sin(0.661.*t_o + 1.543) + 0.0806.*exp(- 0.15.*t_o).*cos(0.661.*t_o + 1.543);
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: de_tau = 0.122.*exp(-0.15.*tau); de_period = 0.122.*exp(-0.15.*p); so_tau = sin(0.661.*tau + 1.543); tr_tau = de_tau .* so_tau; t figure(1) plot(t,de,'r', t,tr,'blue',t,dei,'r') legend('Decaying Exponential', 'Total Response') title('Total Response and Decay Envelope by Song, Hwan') xlabel('Time in sec') ylabel('Detlat(t) in meter') text(tau,de_tau, '\leftarrow Time Constant') text(Period, de_period, '\leftarrow Period') t...
View Full Document

Ask a homework question - tutors are online