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
08478bb: This fails when a class method name is identical to a function on the MATLAB search path. For example calling the method myclass.plot(), nargout will return the number of arguments of the MATLAB built-in plot function. That's why I added a bit more checking:
try
[~, funType] = which(msg('name'));
funType = strsplit(funType,'');
if numel(funType)==2&& strcmp(funType{2},'method')
argTemp = msg('args');
className = funType{1};
if ~isempty(argTemp) && isa(argTemp{1},className)
% the function name corresponds to the% class of the first argument
resultsize = nargout(msg('name'));
endendif isempty(resultsize)
resultsize = nargout(fun);
endcatch
resultsize =-1;
end
The text was updated successfully, but these errors were encountered:
08478bb: This fails when a class method name is identical to a function on the MATLAB search path. For example calling the method
myclass.plot()
, nargout will return the number of arguments of the MATLAB built-inplot
function. That's why I added a bit more checking:The text was updated successfully, but these errors were encountered: