plot 2 signals for sin(t)

4 次查看(过去 30 天)
Mohammed Alqahtany
Mohammed Alqahtany 2023-10-19
评论: Sam Chak 2023-10-19
𝑥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 个评论
Sam Chak
Sam Chak 2023-10-19
Can you sketch the expected plots for the sampled sine waves? Or wait for a free solution in the answer later.
Sam Chak
Sam Chak 2023-10-19
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).

请先登录,再进行评论。

回答(1 个)

Sam Chak
Sam Chak 2023-10-19
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 个评论
Mohammed Alqahtany
Mohammed Alqahtany 2023-10-19
thank you but still i cant solve it
Sam Chak
Sam Chak 2023-10-19
Alright, can you copy the code and show me the equation that cannot be solved? I'll see how to guide you from here.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

标签

产品


版本

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by