plot 2 signals for sin(t)
1 view (last 30 days)
Show older comments
๐ฅ3 (๐ก) = sin(๐ก) ๐๐๐ ๐ก โ [0,6] ๐๐๐ ๐ก๐ 1 = 1 sec
๐ฅ4 (๐ก) = sin(๐ก) ๐๐๐ ๐ก โ [0,6] ๐๐๐ ๐ก๐ 2 = 0.1 ๐ ๐c
where ๐ก๐ is the step size used to sample the time interval [0,6]. a. For signals ๐ฅ3 (๐ก) and ๐ฅ4 (๐ก), use subplot function to plot them on the same figure one below the other. b. What is the difference between ๐ฅ3 (๐ก) and ๐ฅ4 (๐ก)? What do you suggest?
2 Comments
Sam Chak
on 19 Oct 2023
Can you sketch the expected plots for the sampled sine waves? Or wait for a free solution in the answer later.
Sam Chak
on 19 Oct 2023
I think there are 7 points in the measurements of x3(t) because the sine wave is sampled every 1 second. Thus, over the 6 seconds, there should be 6 points plus the initial point at x3(0).
Answers (1)
Sam Chak
on 19 Oct 2023
After thinking about your learning experience, to learn exactly how sine wave is sampled at a fixed time step, you can try the plotting technique described at this link:
2 Comments
Sam Chak
on 19 Oct 2023
Alright, can you copy the code and show me the equation that cannot be solved? I'll see how to guide you from here.
See Also
Categories
Find more on Multirate Signal Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!