Borrar filtros
Borrar filtros

How to generate sinusoidal sine wave using matlab ?

30 visualizaciones (últimos 30 días)
Sachin Pagar
Sachin Pagar el 31 de Oct. de 2020
Comentada: madhan ravi el 31 de Oct. de 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

Respuesta aceptada

Sachin Pagar
Sachin Pagar el 31 de Oct. de 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)

Más respuestas (1)

Ameer Hamza
Ameer Hamza el 31 de Oct. de 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)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by