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.
6414 Solvers
Back to basics 21 - Matrix replicating
1052 Solvers
Set the array elements whose value is 13 to 0
946 Solvers
Replace multiples of 5 with NaN
358 Solvers
Simple equation: Annual salary
3784 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!