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

243 Solutions

36 Solvers

Last Solution submitted on Dec 04, 2025

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers36

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!