Hi,
I am having some trouble plotting a sine wave and i'm not sure where i am going wrong.
i have
t = [0:0.1:2*pi]
a = sin(t);
plot(t,a)
this works by itself, but i want to be able to change the frequency. When i run the same code but make the change
the code returns something bad. What am i doing wrong? How can i generate a sin wave with different frequencies?
2 Comments
Ahmed Grera (view profile)
Direct link to this comment:
https://se.mathworks.com/matlabcentral/answers/36428-sine-wave-plot#comment_481564
Govinda Nahak (view profile)
Direct link to this comment:
https://se.mathworks.com/matlabcentral/answers/36428-sine-wave-plot#comment_489408
Sign in to comment.