now I have this
A=xlsread('ASTMG173.xls');
real_Solar_spectrum=A(:,3);%W/m2
Wave_length=A(:,1)./1e9;% m
SS_fit_Xs=fit(Wave_length,real_Solar_spectrum,'poly9');
SS_fit=SS_fit_Xs(1)*Wave_length.^9+SS_fit_Xs(2)*Wave_length.^8 ...
+SS_fit_Xs(3)*Wave_length.^7+SS_fit_Xs(4)*Wave_length.^6 ...
+SS_fit_Xs(5)*Wave_length.^5+SS_fit_Xs(6)*Wave_length.^4 ...
+SS_fit_Xs(7)*Wave_length.^3+SS_fit_Xs(8)*Wave_length.^2 ...
+SS_fit_Xs(9)*Wave_length+SS_fit_Xs(10);
and SS_fit doesn't look even close to real_Solar_spectrum.
can you help?
thanks