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.
633 Solvers
15559 Solvers
Back to basics 23 - Triangular matrix
649 Solvers
84 Solvers
237 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!