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.
First non-zero element in each column
607 Solvers
Back to basics 19 - character types
228 Solvers
554 Solvers
Calculate the Hamming distance between two strings
180 Solvers
193 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!