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일

0 개 추천

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개)

카테고리

질문:

2017년 11월 26일

댓글:

2017년 11월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by