plotting a sine or cosine wave with specific time with specific cycles

15 次查看(过去 30 天)
Hello, hope you're doing well.
I want to plot the attache sine graph with 50 cycles and 33 sec. I have tried several codes but didnt work.
Could someone help me with that?
Thanks in advance.

采纳的回答

Benjamin Thompson
Benjamin Thompson 2022-2-15
By 50 cycles, I understand that you mean that over 33 seconds the signal should have 50 periods.
>> t = 0:(1/50):33;
>> x = 2*sin(2*pi*50/33*t);
>> figure, plot(t, x)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by