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.
981 Solvers
2273 Solvers
Determine if a Given Number is a Triangle Number
326 Solvers
Make one big string out of two smaller strings
1161 Solvers
Back to basics 16 - byte order
173 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!