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 Kommentare

dpb
dpb am 23 Jun. 2019
Why not move your Comment to an Answer???
infinity
infinity am 23 Jun. 2019
Hello,
You are right. I have changed it to the answer.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

infinity
infinity am 23 Jun. 2019

0 Stimmen

it should be like that
x=-3*abs(sin(y));

Kategorien

Mehr zu Mathematics finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 22 Jun. 2019

Kommentiert:

am 23 Jun. 2019

Community Treasure Hunt

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

Start Hunting!

Translated by