how to solve this? :-/
Show older comments
Not enough input arguments.
Error in fsolve (line 243) fuser = feval(funfcn{3},x,varargin{:});
Caused by: Failure in initial user-supplied objective function evaluation. FSOLVE cannot continue. I write in cw: [y,fval,exitflag]=fsolve(@(ca,cc,cp)koncas(ca,cc,cp),[1;1;1;1;1;0;0;0;0;0;0;0]) function: function [ y] = koncas( ca,cc,cp) %UNTITLED Summary of this function goes here % Detailed explanation goes here
y=[2.2-0.53*ca(1)-24*ca(1)^2-ca(1)-8.5*ca(1)*cc(1)^2+0.7*cp(1)^3 0.364-0.44*ca(1)-1.44*ca(2)-24*ca(2)^2-ca(2)-8.5*ca(2)*cc(2)^2+0.7*cp(2)^3 0.3+1.1*ca(2)-1.85*ca(3)-24*ca(3)^2-ca(3)-8.5*ca(3)*cc(3)^2+0.7*cp(3)^3 0.25+1.54*ca(3)-2.15*ca(4)-24*ca(4)^2-ca(4)-8.5*ca(4)*cc(4)^2+0.7*cp(4)^3 36*ca(1)^2-17*ca(1)*cc(1)^2+2.1*cp(1)^3-0.533*cc(1) 0.44*cc(1)+36*ca(2)^2-17*ca(2)*cc(2)^2+2.1*cp(2)^3-1.33*cc(2) 1.11*cc(2)+36*ca(3)^2-17*ca(3)*cc(3)^2+2.1*cp(3)^3-1.85*cc(3) 1.54*cc(3)+36*ca(4)^2-17*ca(4)*cc(4)^2+2.1*cp(4)^3-1.33*cc(4) 8.5*ca*(1)*cc(1)^2-0.7*cp*(1)^3-0.53*cp(1) 0.44*cp(1)+8.5*ca*(2)*cc(2)^2-0.7*cp*(2)^3-1.6*cp(2) 1.11*cp(2)+8.5*ca*(3)*cc(3)^2-0.7*cp*(3)^3-1.85*cp(3) 1.54*cp*(3)+8.5*ca*(4)*cc(4)^2-0.7*cp*(4)^3-2.15*cp(4)];
end
Accepted Answer
More Answers (0)
Categories
Find more on Solver Outputs and Iterative Display in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!