You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These should always be fields if opt is created with statset. However if you want to pass in your own struct then we would still need to handle the case where MaxIter or TolX are empty. How about this instead?
if isfield(opt,'MaxIter') && ~isempty(opt.MaxIter)
if isfield(opt,'TolX') && ~isempty(opt.TolX)
Hi!
I suggest you to change line 63 on STBLFIT.m
if ~isempty(opt.MaxIter)
by
if isfield(opt,'MaxIter')
and line 66
if ~isempty(opt.TolX)
by
if isfield(opt,'TolX')
Regards!
The text was updated successfully, but these errors were encountered: