why its not work

2 次查看(过去 30 天)
shaker mahmood
shaker mahmood 2016-8-17
i used
n1=5;
for x=50:5:200;
y=2*pi*n1/x;
plot (x,y);
its show an empty plot

采纳的回答

Torsten
Torsten 2016-8-17
n1=5;
x=50:5:200;
y=2*pi*n1./x;
plot (x,y);
Best wishes
Torsten.

更多回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2016-8-17
编辑:Azzi Abdelmalek 2016-8-17
If you want to do it with a for loop
n1=5;
for x=50:5:200;
y=2*pi*n1./x;
scatter(x,y);
hold on
end
  1 个评论
shaker mahmood
shaker mahmood 2016-8-17
编辑:shaker mahmood 2016-8-17
thank you so much ,its help me a lot

请先登录,再进行评论。

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by