To plot an ellipse

조회 수: 9 (최근 30일)
Priya
Priya 2014년 5월 12일
댓글: Waqar Khan 2021년 3월 18일
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.

채택된 답변

Image Analyst
Image Analyst 2014년 5월 12일
  댓글 수: 4
D_coder
D_coder 2020년 5월 16일
편집: D_coder 2020년 5월 16일
how would this line plot change for an ellipsoid , I mean 3d?
Image Analyst
Image Analyst 2020년 5월 16일
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

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Waqar Khan
Waqar Khan 2021년 3월 18일
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
Walter Roberson
Walter Roberson 2021년 3월 18일
Note: The P in the equation for G controls how quickly the Gaussian drops off. You should decide more carefully how much you want the gaussian to fall off by the edge of the ellipse.
Also note that what this implements is a circular guassian "clipped" by an ellipse. You could instead make the gaussian itself elliptical, by modifying distance from the center according to the ellipse parameter.
IIt is possible that what you need to do is construct an elliptical gaussian filter, such as for blurring purposes. You would proceed a bit differently in a case like that.
Waqar Khan
Waqar Khan 2021년 3월 18일
Noted, Thank you so much once again, i am reading it carefully.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by