can anybody post matlab code for rectangular spiral shape?

 采纳的回答

x = [1 8 8 4 4 6 6 5];
y = [8 8 1 1 4 4 2 2];
plot(x,y)
axis([0 10 0 10])

1 个评论

can't we draw it for default values? like we enter some number or turns and starting point and giving some space between each of the turns which is equal...

请先登录,再进行评论。

更多回答(1 个)

Margreet
Margreet 2014-3-19
编辑:Margreet 2014-3-19
There are many different types of spirals, is this what do you mean?

类别

帮助中心File Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by