How to generate sinusoidal sine wave using matlab ?

41 次查看(过去 30 天)
I need to plot a sine wave with a frequency of 25 amplitude of 5 time of 0:0.1:1 how do i go about this, thanks

采纳的回答

Sachin Pagar
Sachin Pagar 2020-10-31
T = 0:0.001:1; % your time vector have a very low sampling frequency
Z = 5*sin(25*2*pi*T);
plot(T, Z)

更多回答(1 个)

Ameer Hamza
Ameer Hamza 2020-10-31
Try this
t = 0:0.001:1; % your time vector have a very low sampling frequency
y = 5*sin(25*2*pi*t);
plot(t, y)

类别

Help CenterFile Exchange 中查找有关 Get Started with DSP System Toolbox 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by