- nargout returns the number of outputs
- dbstack provides the name and the line number of the caller
- fileread together with regexp provide the names of the output arguments.
- sas = evalin('caller','whos') tells whether the outputs exists
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!