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.

 采纳的回答

Jos (10584)
Jos (10584) 2017-11-26
编辑:Jos (10584) 2017-11-26
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.-')

更多回答(0 个)

类别

Community Treasure Hunt

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

Start Hunting!

Translated by