I want to plot a sin signal which takes 1 second to complete and oscillation and has an amplitude of 1. I've tried determining the trigonometric function but I got lost. How can I plot this in MATLAB? Cheers.

 Respuesta aceptada

Jos (10584)
Jos (10584) el 26 de Nov. de 2017
Editada: Jos (10584) el 26 de Nov. de 2017

0 votos

t = linspace (0,1,100) ;
F = 1 ; % frequency (Hz)
A = 1 ; % amplitude (a.u.)
y = A * sin(2 * pi * F * t) ;
plot(t, y, 'b.-')

Más respuestas (0)

Preguntada:

el 26 de Nov. de 2017

Comentada:

el 26 de Nov. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by