bonjour,
en effet je suis un débutant en programmation MATLAB,
et j'ai voulu executer ce programme
mais MATLAB me donne ce messageCode:
1
2
3
4
5
6 A=[-1 -2 -2 ;1 2 2]; b=[0;72]; x0=[10;10;10]; function f=myfun(x) f=-x(1)*x(2)*x(3); [x,fval]=fmincon(@myfun,x0,A,b)
est ce que quelqu'un peut m'aiderCitation:
A function declaration cannot appear within a script M-file.