Store a series of numbers into a 4 by 4 matrix, starting with the first few positions going right and down, and leaving the rest of the matrix filled with NaN.
So if A = [1 2 3 4 4 5]
B = [ 1 2 3 4; 4 5 NaN NaN; NaN NaN NaN NaN; NaN NaN NaN NaN]

Solution Stats

248 Solutions

37 Solvers

Last Solution submitted on Feb 17, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers37

Suggested Problems

More from this Author23

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!