How to use fitoptions

조회 수: 6 (최근 30일)
William
William 2013년 5월 9일
%define thermal voltage at room temperature
global kT Sun filename x
x=x(:,1) y=y(:,1)
kT=25.85e-3
fo=fitoptions('Method', 'NonlinearLeastSquares','Lower',[0 0 1 0 0],'Upper',[2 2 2 3000 30]);
ft2 = fittype('lambertsolar2(x, R_s, R_p, N, I_0, I_p)','options',fo)
'Startpoint',[20,2000,1.6,1e-6,1e-3]
solarfit= fit(x,y,ft2)
I was trying to fit a data called x and y onto a function called lambertsolar2. However, It would give me an error like
??? No appropriate method, property, or field startpoint for class curvefit.llsqoptions.
Error in ==> fit at 319 start = options.startpoint;
Error in ==> run2 at 23 solarfit= fit(x,y,ft2)
Any suggestions on how to fix this?
Thank you!

답변 (0개)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by