**Homework Assignment 11 **

Due Nov. 6, 1998

When plotting functions using MATLAB remember the following considerations:

- Decide on a time range -- usually t
_{min}= 0, and t_{max}is determined by:- When plotting a exponential function or damped sinusoid,
t
_{max}= 5 T_{C}. - When plotting multiple exponentials, t
_{max}= 5 times the largest T_{C} - When plotting a sinusoid, plot at least two periods -- t
_{max}= 2 T_{0}

- When plotting a exponential function or damped sinusoid,
t
- Define a time vector
`t = 0:tmax/1000:tmax`which breaks your time range into about 1,000 parts. - Write your funtion pretty much as it is written on paper, but remember
that
*e*^{a t}is written as`exp(a*t)` - Remember that all angles should be in radians, not degrees. To convert from degrees to radians, multiply by pi and divide by 180.
- When multiplying two vectors, use "
`.*`" rather than "`*`". For example, to calculate*cos*(*a t*)*sin*(*b t*) write`cos(a*t) .* sin(b*t)` - Use the functions
`xlabel('t (seconds)')`,`ylabel('v (volts)')`, and`title('Plot of e^{-100 t}')`to annotate your plots. - Here is an example

- Use MATLAB to plot the function
*v*(*t*) = 5 [1 -*e*^{-100 t }]*u*(*t*). - Use MATLAB to plot the function
*v*(*t*) = 2*e*^{-50 t}sin(500*t*)*u*(*t*) - Use MATLAB to plot the function
*v*(*t*) = 100(*e*^{-1000 t}-*e*^{-500 t}). - Problem 5-30.