Question: HELP WITH SIMPLE MATLAB CODE Create a row matrix that is going to be a time axis from -2 to 6 seconds. The step size

HELP WITH SIMPLE MATLAB CODE

Create a row matrix that is going to be a time axis from -2 to 6 seconds. The step size must be 1ms.

Create a function x(t) = sin(2*pi*t)

The following function V2(t) is shown at the bottom Create this function in Matlab using IF statements. Be sure to use the same time vector so that V2(t) and x(t) have the same number of points. Otherwise the following steps will result in errors.

Create a new function y(t) = x(t).*V2(t) This is a point by point multiplication of these two functions.

Create a subplot showing all three plots separately in one single figure. Place x(t) on top V2(t) second and y(t) on the bottom. Properly label each plot.

Repeat this project but find a better (smaller) step size. The best step size is the smallest one that doesnt noticeably degrade the plots. You can use linspace() or the colon (:) operator to set the independent variable (in this case, time). What is the best step size ? Compare the number of points with this best step size to the one I made you use in part (i)

V2(t):

HELP WITH SIMPLE MATLAB CODE Create a row matrix that is going

The following is the mesa waveform y, t (b) Mesa t(s)

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!