convert 16X16 to 256X256
Show older comments
i have a 16X16 matrix.. i have to add it to a 256X256 matrix.. can anyone help me how to make this 16X16 matrix into 256X256 filling the remaining with zeros?? thank u in advance..
Accepted Answer
More Answers (1)
Jan
on 4 Mar 2011
Another method:
A = rand(16, 16);
A(256, 256) = 0;
The other zeros are created automatically. Walter's method is more powerful, because this one inserts the zeros on the right bottom only.
Categories
Find more on Creating and Concatenating Matrices 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!