Closed stanleybak closed 6 years ago
The code was corrected as shown.
if(nargin>=2)
x=Xguess;
u=Uguess;
else
% If called with insufficient args
warning('Defaulting to zero states for initial trim guess');
x=zeros(13,1);
u=zeros(4,1);
end
if(nargin<5)
printOn = 0;
end
trimmerFun
gets called with 5 arguments fromRunF16Sim
.The code starts out with:
The 'else' case gets used, which means the initial guess gets ignored. This should be changed.