How to expand a small matrix to a larger matrix
Show older comments
Hello,
I am having a difficult time trying to figure out a loop that will expand the matrix on the left to the one on the right. Any help for this would be very appreciated!
Thank you

2 Comments
David Hill
on 12 Mar 2021
What are you inserting into the white squares? zeros, nan, or something else?
J Lim
on 12 Mar 2021
Accepted Answer
More Answers (0)
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!