Not enough input arguments driving me crazy - help?
Ältere Kommentare anzeigen
Hi, new to matlab here and having a torrid time of it. Checked the other threads and yet I remain confused. Any help would be greatly appreciated!
Trying to run this code
=================================
function f = objfun(x)
f = -x(1) * x(2) * x(3);
A = [-1 -2 -2; ...
1 2 2];
b = [0;72];
x0 = [10;10;10];
[x,fval] = fmincon(@objfun,x0,A,b);
====================================
and it returns an error in line 2 not enough input arguments
Can anybody explain what is going on here?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Physics finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!