sfit data array output
이전 댓글 표시
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
댓글 수: 1
Asliddin Komilov
2019년 10월 6일
답변 (1개)
darova
2019년 10월 6일
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
Asliddin Komilov
2019년 10월 7일
편집: Asliddin Komilov
2019년 10월 7일
darova
2019년 10월 7일
Is it the way the approximated curve should looks like?

카테고리
도움말 센터 및 File Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!