Plotting -3|siny|

1 view (last 30 days)
Bimal Bhattarai
Bimal Bhattarai on 22 Jun 2019
Commented: infinity on 23 Jun 2019
My code is showing error in the x=-3abs(siny) part. Please Help
y=-pi:0.1:pi;
x=-3abs(siny);
plot (y,x);
  2 Comments
dpb
dpb on 23 Jun 2019
Why not move your Comment to an Answer???
infinity
infinity on 23 Jun 2019
Hello,
You are right. I have changed it to the answer.

Sign in to comment.

Answers (1)

infinity
infinity on 23 Jun 2019
it should be like that
x=-3*abs(sin(y));

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!