This preview shows page 1. Sign up to view the full content.
Unformatted text preview: moving on to problem number 5. 5. Complete the following Matlab exercise: a. Create a variable “ t” that goes from -3 to +3 in .01 increments. This variable should have 601 points. Verify that t(301)= 0. This will be the x-axis in a future plot. b. Create another variable “y” where: y = 2sin(3t) c. Plot y(t) using the following command: >> plot(t,y) d. Add your name to the plot by using the following command at the command prompt: >> xlabel('Your Name') e. Print the plot f. Create another variable “m” where: m(t) = exp(-t) g. Create another variable “z” where: z(t) = y(t)m(t) h. Plot z(t) and print the result with your name added to the plot. Turn in the following for full credit: 3 plots, one each of y(t), m(t), and z(t) I will not give credit to any assignments that do not have your name included on the plot....
View Full Document
This note was uploaded on 02/06/2012 for the course EE 2120 taught by Professor Aravena during the Fall '08 term at LSU.
- Fall '08
- Electrical Engineering