Plot a simple sinusoid of amplitude

Plot a simple sinusoid of amplitude 1 and frequency f=1 for 0<t<1
ie. y= sin(2*pi*f*t)

2 Comments

Like this?
t = linspace(0,1);
f = 1; % [Hz]
y= sin(2*pi*f*t);
plot(t,y)
Thank you, Akira Agata. I am forever indebted to you.

Sign in to comment.

Answers (0)

Asked:

on 5 Dec 2017

Commented:

on 30 Sep 2020

Community Treasure Hunt

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

Start Hunting!