Question: MATLAB 1)Write the code to plot each of the following using MATLAB: A) Plot a continuous time function x(t) = 5sin(10t+/6) with 10 periods. B)
MATLAB
1)Write the code to plot each of the following using MATLAB:
A) Plot a continuous time function x(t) = 5sin(10t+/6) with 10 periods.
B) Plot a signal y(t): y(t) = x2(t)+2; The signal y(t) is from x(t), so we can use the above result to plot y(t). Notice that both y(t) and x(t) have the range of t, so we only need to calculate the y(t) and then plot it. We use a vector y to store the samples of y(t)
C) Use subplot command to plot x(t) and y(t) in a single figure.
D) Using answers A,B,C write a program named lab1_prom.m to plot x(t) and y(t) (10 periods) in one figure and label the figure.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
