I think the third example in the problem statement is incorrect. The input is a row (it's set up as a column, but then is transposed), but the output is a column.
There may have some limitations when resulting rows are with different lengthes.
6397 Solvers
Back to basics 4 - Search Path
322 Solvers
394 Solvers
Replace all zeros and NaNs in a matrix with the string 'error'
90 Solvers
When can one be the Life Member of the IEEE?
70 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!