필터 지우기
필터 지우기

user defined equation fit to a dat a set

조회 수: 2 (최근 30일)
aditi
aditi 2014년 1월 22일
댓글: aditi 2014년 1월 23일
I have x axis values=x
y axis values=y
and equation of line to be fit on the plot of data is suppose
d=a*exp(x^b - 2^b)
where a and b i have to find...
so please help me out with this problem

채택된 답변

AJ von Alt
AJ von Alt 2014년 1월 22일
The fit function can use custom non-linear models. The custom nonlinear models article gives an example of how to do this from the command line.
For your model it would be:
f = fit( x , y ,'a*exp(x^b-2^b)')
  댓글 수: 1
aditi
aditi 2014년 1월 23일
hey von
I tried using it...but i am getting 'a' value suppose 1 which actually should come 5 and am getting 'b' value suppose 1...it should actually be 2...
so m getting very less values than the correct one...

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by