Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
Mithun Routh
Mithun Routh le 11 Sep 2018
Commenté : Walter Roberson le 12 Sep 2018
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 commentaires
Mithun Routh
Mithun Routh le 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 le 11 Sep 2018
Modifié(e) : PromoCodeBSJ le 11 Sep 2018
what is x? you need to define x. on my machine it works fine

Connectez-vous pour commenter.

Réponse acceptée

PromoCodeBSJ
PromoCodeBSJ le 11 Sep 2018
Modifié(e) : Walter Roberson le 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 commentaires
Mithun Routh
Mithun Routh le 12 Sep 2018
thanks sir for ur help @ walter Roberson
Walter Roberson
Walter Roberson le 12 Sep 2018
It was PromoCodeBSJ who provided the solution; I just reformatted it to look nicer.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by