I have a function 'foo' and I do not know how many arguments it takes. I want to capture all output arguments of 'foo' in a cell array. I would like to know how to do that without having to guess the number of output arguments.
MATLAB: How to capture an unknown number of output arguments in a cell array in MATLAB 7.5 (R2007b)
argumentsMATLABnargoutoutputvarargoutvariable
Best Answer