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

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
ellipse Lola 3 Nov, 2012 06:59:10
matlab Lola 3 Nov, 2012 06:59:10
rotation Lola 3 Nov, 2012 06:59:10
rssFeed for this Thread

Contact us