Fit data using a function

조회 수: 1 (최근 30일)
Sanchit Sharma
Sanchit Sharma 2019년 7월 1일
댓글: the cyclist 2019년 7월 1일
Hello,
I am an absolute beginner in MATLAB. I want to fit my attached data as per this equation.
(-0.00789+0.06769*sqrt(x+0.021159*(x^2)))
In attached data------ Y axis = data.mat
X axis = ED.mat
Many thanks!

채택된 답변

the cyclist
the cyclist 2019년 7월 1일
편집: the cyclist 2019년 7월 1일
The equation you have written there has no parameters. It has only constants and the data.
But if each of those constants (e.g. 0.06769) is actually a parameter that you are hoping to find via fitting, then I suggest using the fitnlm function from the Statistics and Machine Learning Toolbox.
  댓글 수: 2
Sanchit Sharma
Sanchit Sharma 2019년 7월 1일
Yes those are actually my parameters. I already know my parameters from literature. I am just trying to do Gaussian Energy Broadning. Can you please let me know how to do that?
the cyclist
the cyclist 2019년 7월 1일
Sorry, I've never heard of that technique, and a quick google search did not turn up much for me.
Next time you ask a question, you might want to put more detail like that into it. It saves everyone's time.

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

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by