Customize a fitting curve (semi-ellipse)

Hi everyone,
I am not very familiar with Matlab so i have a question that maybe can seems to be simple.. I have a database define in X from -0.5 to 0.5 and in Y from 0 to 10. I want to find the best semi-ellipse that can fit the data but i want it to be 0 for X=-0.5 and X=0.5 and in order to have a symmetric shape: Y(fitcurve)=MAX for X=0.
How can i do that with Matlab ?
Thank you very much. Let me know if i am not clear enough.
Rémi

댓글 수: 1

Matt J
Matt J 2014년 2월 7일
편집: Matt J 2014년 2월 7일
No, it's not clear. What does Y(fitcurve)=MAX mean? What is "MAX" and what is "fitcurve"? Does it mean abs(Y) and abs(X) are maximized at the same point on the curve?
And what do you mean by "i want it to be 0 for X=-0.5 and X=0.5". What is "it" in that sentence? Do you mean Y?

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

답변 (1개)

Mischa Kim
Mischa Kim 2014년 2월 7일

0 개 추천

Check out this answer. And use, e.g.,
t = (0:pi/10:2*pi)';
x = 4*cos(t) + rand(size(t));
y = 2*sin(t) + rand(size(t));
instead to center the ellipse appropriately.

카테고리

도움말 센터File Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기

질문:

2014년 2월 7일

답변:

2014년 2월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by