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:
convert polar to cartesian coordinates

Subject: convert polar to cartesian coordinates

From: Klaus Dietrich Dietrich

Date: 2 Jan, 2009 21:50:02

Message: 1 of 2

Hi,
I'm trying to convert polar to cartesian coordinates. I'm aware of
the function pol2cart, but in the particular case I have to count the
angle referenced from the y-axis in clockwise orientation positive.
Thanks,
Klaus

Subject: convert polar to cartesian coordinates

From: Roger Stafford

Date: 3 Jan, 2009 01:40:19

Message: 2 of 2

"Klaus Dietrich Dietrich" <klausdietrich79@yahoo.com> wrote in message <gjm26a$h42$1@fred.mathworks.com>...
> Hi,
> I'm trying to convert polar to cartesian coordinates. I'm aware of
> the function pol2cart, but in the particular case I have to count the
> angle referenced from the y-axis in clockwise orientation positive.
> Thanks,
> Klaus

Either

 x = rho.*sin(ang);
 y = rho.*cos(ang);

or

 [y,x] = pol2cart(ang,rho)

Roger Stafford

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