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.
56474 Solvers
839 Solvers
1890 Solvers
Combinations without using nchoosek
66 Solvers
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
540 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!