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.
230 Solvers
340 Solvers
Back to basics 6 - Column Vector
911 Solvers
Back to basics 25 - Valid variable names
293 Solvers
214 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!