can anybody post matlab code for rectangular spiral shape?

3 views (last 30 days)
can anybody post matlab code rectangular spiral shape?

Accepted Answer

David Sanchez
David Sanchez on 19 Mar 2014
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 Comment
nageswara rao
nageswara rao on 24 Mar 2014
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...

Sign in to comment.

More Answers (1)

Margreet
Margreet on 19 Mar 2014
Edited: Margreet on 19 Mar 2014
There are many different types of spirals, is this what do you mean?

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!