0

I would like to ask how to plot ellipse in such format:

ax^2+by^2+cxy+dx+ey-1=0

I tried with ezplot and contour and it didn't seem to work.

Cape Code
  • 3,584
  • 3
  • 24
  • 45
  • I would suggest checking out this related/potential duplicate question: http://stackoverflow.com/questions/2153768/matlab-to-draw-ellipse-and-ellipsoid – gnovice May 17 '10 at 14:05

3 Answers3

0

If you use that equation you must satisfy the relation c^2 - 4ab < 0 for it to be an ellipse.

Edit: Also specifying more clearly how it does not seem to work (what you were expecting and what happened) could be useful.

Andrei Fierbinteanu
  • 7,656
  • 3
  • 31
  • 45
0

You need to use numeric values for the parameters a through e. Then you can plot the ellipse with ezplot.

Jonas
  • 74,690
  • 10
  • 137
  • 177
0

see this file on the matlab file exchange: ellipse.m

Marc
  • 5,315
  • 5
  • 30
  • 36