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.

 Risposta accettata

Jos (10584)
Jos (10584) il 26 Nov 2017
Modificato: Jos (10584) il 26 Nov 2017
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.-')

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by