I couldnot find the value of v and w. let me know what is the mistake in the following code.
function solveeqs()guess=[200 110];[result,fval,exit,output]= fsolve(@eqns,guess);resultfvaleqns(guess)outputendfunction fcns=eqns(z)v=z(1);w=z(2);p=30;d=1;lamda=0.8;c=10;r=35;h=0.05;chi=1000;k=0.02;b=7;a =0.01;T =107;%w=k*(1-exp(-a*chi));
M=k*a;fcns(1)=(1/T)*[p*d-((lamda*p*d*v)/T)-(d*exp(-(w-k)*v)-(d*v/T))*c-d*((v/T)-1)*r-(d/(w-k))*(1-exp(-(w-k)*v)*h)];fcns(2)=(1/T)*[-(d*c*v*exp(-(w-k)*v)*M/(w-k))+(((d*c*(1-exp(-(w-k)*v))+h*d*v*(1+exp(-(w-k)*v)))*M)/(w-k)^2)+((2*h*d*(exp(-(w-k)*v)-1)*M)/(w-k)^3)-1];end
Best Answer