Hello all
I want to use a nlinfit, previously I used for two inputs and it was working fine but not I have 3 inputs and its giving error:
??? Error using ==> statset at 262Expected argument 2 to be a parameter name string or an options structurecreated with STATSET.Error in ==> nlinfit at 103 options = statset(statset('nlinfit'), options);Error in ==> Nu_variables at 9param=nlinfit(Re,Pr,Nu,@fitfun_Nu,param0);Error in ==> tem_dep_cal at 42h=Nu_variables(Re,Pr,Nu);
where my fitfun is:
function [ Nu ] = fitfun_Nu(param,Re,Pr)Nu=param(1).*(Re.^param(2)).*(Pr.^param(3));end
can anyone guide me to rectify the error?
Thanking you!!!
Regards
Best Answer