Question: Question # 1 ( 1 1 points ) from ( slide # 8 , lecture 1 0 ) . Create a vector

Question \# 1(11 points) from (slide \#8, lecture 10).
Create a vector \( t \) that spans two periods of a sine wave with a frequency of \( f=10\mathrm{~Hz}\) using 10 equally spaced data points per period (2 points)
Hint: The period \( T \) is given by \( T=1/ f=0.1\) seconds, so set \( t \) to cover 0.2 seconds (two periods), resulting in a total of 20 points. Calculate \( y=\sin (2\pi f t)\)
Set up a figure with three vertical subplots. In each subplot:
- Use a red line with circle markers.
- Set the y-axis limits to fully encompass the entire range of the signal.
1. In the first subplot, plot y versus t.(1 point)
2. In the second subplot, generate a vector of random errors as RE =2* rand(1, length(t)) and plot \( y+R E \) versus \( t \).(1 point)
3. In the third subplot, create an error bar plot of \( y \) versus \( t \) using errorbar with RE as the error. (1 point)
Ensure each subplot includes a title (incorporate \pi in the title) and labeled axes (6 points).
Question \ # 1 ( 1 1 points ) from ( slide \ # 8

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 Programming Questions!