who can help me write matlab codes for curve fitting?
1 次查看(过去 30 天)
显示 更早的评论
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)
0 个评论
回答(2 个)
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 个评论
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
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
0 个评论
另请参阅
类别
在 Help Center 和 File 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!