Filter löschen
Filter löschen

How to generate sinusoidal sine wave using matlab ?

30 Ansichten (letzte 30 Tage)
Sachin Pagar
Sachin Pagar am 31 Okt. 2020
Kommentiert: madhan ravi am 31 Okt. 2020
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

Akzeptierte Antwort

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

Weitere Antworten (1)

Ameer Hamza
Ameer Hamza am 31 Okt. 2020
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)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by