can anybody post matlab code for rectangular spiral shape?

 Respuesta aceptada

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 comentario

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

Iniciar sesión para comentar.

Más respuestas (1)

Margreet
Margreet el 19 de Mzo. de 2014
Editada: Margreet el 19 de Mzo. de 2014
There are many different types of spirals, is this what do you mean?

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 19 de Mzo. de 2014

Comentada:

el 24 de Mzo. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by