To plot an ellipse

155 views (last 30 days)
Priya
Priya on 12 May 2014
Commented: Waqar Khan on 18 Mar 2021
Hi,
I have got the semi axes, with that how to plot an ellipse in matlab. I have tried using the function 'pdeellip', but it didn't work out. Please do help.
Thanks in advance.

Accepted Answer

Image Analyst
Image Analyst on 12 May 2014
  4 Comments
Image Analyst
Image Analyst on 16 May 2020
Use the ellipsoid() function:
[x, y, z] = ellipsoid(0,0,0,5.9,3.25,3.25,30);
figure
surf(x, y, z)
axis equal

Sign in to comment.

More Answers (1)

Waqar Khan
Waqar Khan on 18 Mar 2021
Hi there, I need help with creating ellipse, I have X = 0.666 and Y=0.87 values, I need to make ellipse from X and Y, kindly guide me. Looking forward to hearing from you.
  10 Comments
Waqar Khan
Waqar Khan on 18 Mar 2021
Noted, Thank you so much once again, i am reading it carefully.

Sign in to comment.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!