Question
1. Create a time vector t in Matlab that starts at zero and ends at whatever time is required to display two complete cycles of
1. Create a time vector t in Matlab that starts at zero and ends at whatever time is required to display two complete cycles of s(t). I recommend that you make the step size between each value of t small enough that your total vector has length 100 or greater. If your step size is too large, and your time vector has only a few points, then your function s(t) will look choppy because Matlab uses a linear interpolation between adjacent points to display a discrete-time function as a continuous-time function. Do not print out the values of t.
2. Sinusoid: Now generate the vector s(t) = cos(0t + ), with 0 = 2 1000 radians/s and = 0 radians, using your time vector t.
Note that you will create the vector s in Matlab, not s(t). The notation s(t) is only to indicate that s is a function of t. Matlab will not understand if you type the command s(t).
The length of your sinusoid vector s should be the same length as your time vector t. Do not print out the sinusoidal vector s.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started