MATLAB: Plotting a sin signal

MATLABsignal processing

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.

Best Answer

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.-')