sfit data array output
Ältere Kommentare anzeigen
Hi, I have this:
SS_fit_Xs=fit(Wave_length,real_Solar_spectrum,'poly9');
then I can plot it so easily like this:
plot(SS_fit_Xs,Wave_length,real_Solar_spectrum);
but to get fitted curve as data I have to write down very long formula with 10 coefficients.
Is there any way to do it in a shorter line?
thanks
Antworten (1)
darova
am 6 Okt. 2019
This code
A = xlsread('ASTMG173.xls');
x = A(:,1);
y = A(:,3);
plot(x,y)
Produces

Is it the curve you want to approximate?
2 Kommentare
Asliddin Komilov
am 7 Okt. 2019
Bearbeitet: Asliddin Komilov
am 7 Okt. 2019
darova
am 7 Okt. 2019
Is it the way the approximated curve should looks like?

Kategorien
Mehr zu Linear and Nonlinear Regression finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!