how can we plot this sine wave

1 view (last 30 days)
sesha sai
sesha sai on 20 Apr 2019
Commented: sesha sai on 20 Apr 2019
Untitledkj.jpgit was source

Accepted Answer

Geoff Hayes
Geoff Hayes on 20 Apr 2019
sesha - the only difference between this and the usual sine curve is that it is "inverted". Try doing
x = -pi:0.01:pi;
y = -1 * sin(x);
plot(x,y);
and see how the -1 scalar gives you what you are looking for.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!