Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Function for making a spiral in matlab

Subject: Function for making a spiral in matlab

From: Sprinceana

Date: 22 Apr, 2009 21:01:02

Message: 1 of 3

I want to define a plot of a spiral and I don't know what function to use.

Send me please doc and the name of the function.

>>doc name_function

Thanks very much!

Subject: Function for making a spiral in matlab

From: Roger Stafford

Date: 22 Apr, 2009 21:10:17

Message: 2 of 3

"Sprinceana " <mihaispr@yahoo.com> wrote in message <gso0ie$nec$1@fred.mathworks.com>...
> I want to define a plot of a spiral and I don't know what function to use.

 t = linspace(0,20*pi,1000);
 x = t.*cos(t);
 y = t.*sin(t);
 plot(x,y)

Roger Stafford

Subject: Function for making a spiral in matlab

From: Sprinceana

Date: 22 Apr, 2009 21:21:02

Message: 3 of 3

"Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid> wrote in message <gso13p$1f9$1@fred.mathworks.com>...
> "Sprinceana " <mihaispr@yahoo.com> wrote in message <gso0ie$nec$1@fred.mathworks.com>...
> > I want to define a plot of a spiral and I don't know what function to use.
>
> t = linspace(0,20*pi,1000);
> x = t.*cos(t);
> y = t.*sin(t);
> plot(x,y)
>
> Roger Stafford

Thank you very much Roger!

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us