How to fit data to my customized form automatically?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have quite a few sets of data and I want to fit them to y=a-b*x^3. I know that I could use cftool and do it manually for each data set. But it is really tedious. Is it a better way to do it? Thanks a lot.
0 Kommentare
Akzeptierte Antwort
Jiro Doke
am 23 Feb. 2011
Example:
f = fittype('a-b*x^3', 'independent', 'x', 'coefficients', {'a', 'b'});
fitobj = fit(rand(10,1), rand(10,1), f)
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Get Started with Curve Fitting Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!