j'ai essayé ce que t'as dit mais il affiche cet erreur :
??? Attempted to access Fint(35); index out of bounds because numel(Fint)=34.
Error in ==> fonct at 17
X=((Fint(i)-Fsim(i))).^2;
Error in ==> fminsearchbnd>intrafun at 259
fval = feval(params.fun,reshape(xtrans,params.xsize),params.args{:});
Error in ==> fminsearch at 265
x(:) = y; f = funfcn(x,varargin{:});
Error in ==> fminsearchbnd at 229
[xu,fval,exitflag,output] = fminsearch(@intrafun,x0u,options,params);
Error in ==> minas at 8
[lam,fval,exitflag,output] = fminsearchbnd(@fonct,lam0,LB,UB,optio);
Partager