You could just use
dates_me = month_ends(date_start, date_end);
to get a variable number of cells in the output. That avoids the user of varargout and the limitation to the number of outputs.
548 Solvers
75 Solvers
193 Solvers
The Answer to Life, the Universe, and Everything
385 Solvers
118 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!