Question: DO IN MATLAB 2. Defining signals (10 points) a. Create a function to generate a time array Function name: 't_array Inputs: start time, end time,

DO IN MATLAB

DO IN MATLAB 2. Defining signals (10 points) a. Create a function

2. Defining signals (10 points) a. Create a function to generate a time array Function name: 't_array Inputs: start time, end time, sampling frequency. Output: time vector b. With the use of the defined function 't_array" generate the following deterministic signals S1 and S2 within 1-2 s time interval with a sampling frequency of 1000 Hz. S1 = 2sin (20nt) x exp (2t) S2 = 200sin (20ft) x exp(-0.5t) Plot both S1 and S2 in the same figure. Use different markers to distinguish the two plots (i.e., plot S1 with solid line and S2 with dashed line) Label the axes and add legends to the figure. C. Plot the summation of the two signals (S1 + S2) on the same figure in b. Use different markers distinguish the plots and add the legends. d. Create a stochastic signal e which varies in the range of [0 0.5] and has the same dimensions of S1. In a new figure plot the signal S1 +e

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!