Got Questions? Get Answers.
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:
Hi

Subject: Hi

From: Lola

Date: 3 Nov, 2012 10:59:08

Message: 1 of 2

How can I plot an ellipse with 30 degree rotation.

Subject: Hi

From: Roger Stafford

Date: 3 Nov, 2012 12:59:08

Message: 2 of 2

"Lola" wrote in message <k72tds$j6v$1@newscl01ah.mathworks.com>...
> How can I plot an ellipse with 30 degree rotation.
- - - - - - - - - -
  Let 'a' and 'b' be the desired semi-major and semi-minor axes.

 t = linspace(0,2*pi);
 x = (a*cos(pi/6))*cos(t)-(b*sin(pi/6))*sin(t);
 y = (a*sin(pi/6))*cos(t)+(b*cos(pi/6))*sin(t);
 plot(x,y)
 axis equal

Roger Stafford

Tags for 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