开发者

how to plot ellipse in this format?

开发者 https://www.devze.com 2022-12-30 07:05 出处:网络
I would like to ask how to plot ellipse in开发者_JS百科 such format: ax^2+by^2+cxy+dx+ey-1=0 I tried with ezplot and contour and it didn\'t seem to work.If you use that equation you must satisfy the

I would like to ask how to plot ellipse in开发者_JS百科 such format:

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

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


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.


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消