https://www.mathworks.com/help/releases/R2018b/matlab/ref/varargout.html
varargout
Variable-length output argument list
Syntax
-
Description
varargout
is an output variable in a function definition statement that enables the function to return any number of output arguments. Specifyvarargout
using lowercase characters, and include it as the last output argument after any explicitly declared outputs.- When the function executes,
varargout
is a 1-by-N cell array, where N is the number of outputs requested after the explicitly declared outputs.