can anybody post matlab code for rectangular spiral shape?

 Réponse acceptée

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 commentaire

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...

Connectez-vous pour commenter.

Plus de réponses (1)

Margreet
Margreet le 19 Mar 2014
Modifié(e) : Margreet le 19 Mar 2014
There are many different types of spirals, is this what do you mean?

Catégories

En savoir plus sur MATLAB dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by