who can help me write matlab codes for curve fitting?

조회 수: 1 (최근 30일)
Ming
Ming 2014년 8월 12일
편집: Salaheddin Hosseinzadeh 2014년 8월 13일
I want to fit these 25 curves.who can write codes for me? my curve fitting function is f(x)=a+b/(1+(d*x)^c)

답변 (2개)

Salaheddin Hosseinzadeh
Salaheddin Hosseinzadeh 2014년 8월 12일
Hi Ming,
Try to read your xlsx data using this command "xlsread"
type 'doc xlsread' in matlab command line to see its details.
Then type 'cftool' so that matlab curve fitting toolbar opens you can chose your fit, and when you're satisfied you can go to 'File > Generate Code' and save it as an .m file.
Then take a look inside the created m file and i'm sure you'll learn how to do it without curve fitting interface ;)
Good Luck!
  댓글 수: 4
Ming
Ming 2014년 8월 13일
I just do not know how to write a loop for this program.
Salaheddin Hosseinzadeh
Salaheddin Hosseinzadeh 2014년 8월 13일
편집: Salaheddin Hosseinzadeh 2014년 8월 13일
Could you successfully read the xls file and create 25 set of data?

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


Pratik Bajaria
Pratik Bajaria 2014년 8월 13일
Hello, Please go though the 'fit' and 'polyfit' function help in matlab. These might address your query. http://www.mathworks.in/help/curvefit/fit.html and http://www.mathworks.in/help/matlab/ref/polyfit.html and the corresponding related functions too.
Please let me know in case of any further queries.
Regards, Pratik

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by