Hi all,
I am trying to practice with 'fsolve' and have not figured out fully what's been going on with the following code. Can anyone please shed some light on it?
function N=productivity1(N,Ac,Aw)global Thetac Thetaw tau a bN=[N(1),N(2)];N=[N(1)-(Thetac/a)^(1/b)*(1+tau)*Ac; N(2)-(Thetaw/a)^(1/b)*(1+tau)*Aw; N(1)+N(2)-1]; %this meant to be a constraint...
endN0=[0.7,0.3]; %initial guess for x
option=optimset('Display','iter');result=fsolve(@(N)productivity1(N,Ac0,Aw0),N0,option);*
I must be coding it incorrectly. Much appreciated! Thank you
Best Answer