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

1 次查看(过去 30 天)
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 个评论
Mithun Routh
Mithun Routh 2018-9-11
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 2018-9-11
编辑:PromoCodeBSJ 2018-9-11
what is x? you need to define x. on my machine it works fine

请先登录,再进行评论。

采纳的回答

PromoCodeBSJ
PromoCodeBSJ 2018-9-11
编辑:Walter Roberson 2018-9-11
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by