Azzera filtri
Azzera filtri

Plotting -3|siny|

2 visualizzazioni (ultimi 30 giorni)
Bimal Bhattarai
Bimal Bhattarai il 22 Giu 2019
Commentato: infinity il 23 Giu 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 Commenti
dpb
dpb il 23 Giu 2019
Why not move your Comment to an Answer???
infinity
infinity il 23 Giu 2019
Hello,
You are right. I have changed it to the answer.

Accedi per commentare.

Risposte (1)

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

Categorie

Scopri di più su MATLAB in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by