Filter löschen
Filter löschen

how to write this in matlab???? and plot graph between y and x;

1 Ansicht (letzte 30 Tage)
z=2;
y=0.5-0.00167(z-2)sin(π(x+0.1)/(18.5-0.3(z-2) ))-0.00184(x-3)(z-2)
  8 Kommentare
Mithun Routh
Mithun Routh am 11 Sep. 2018
y=(0.5-0.00167.*(3-2)).*sin((pi.*(x+0.1)/(18.5-0.3.*(3-2))))-0.00184.*(x-3).*(3-2); for z=3, still it is showing error
PromoCodeBSJ
PromoCodeBSJ am 11 Sep. 2018
Bearbeitet: PromoCodeBSJ am 11 Sep. 2018
what is x? you need to define x. on my machine it works fine

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

PromoCodeBSJ
PromoCodeBSJ am 11 Sep. 2018
Bearbeitet: Walter Roberson am 11 Sep. 2018
x=1:10
z=1
y=(0.5-0.00167.*(3-2)).*sin((pi.*(x+0.1)/(18.5-0.3.*(3-2))))-0.00184.*(x-3).*(3-2);
Copy and paste this
  2 Kommentare
Mithun Routh
Mithun Routh am 12 Sep. 2018
thanks sir for ur help @ walter Roberson
Walter Roberson
Walter Roberson am 12 Sep. 2018
It was PromoCodeBSJ who provided the solution; I just reformatted it to look nicer.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by