HELP copy matrix and inserting in another matrix
Show older comments
Hello guys, i have a matrix
U=(416,411)
and i need to make a matrix
W=zeros(416+2,411+2)
and then i need to copy the matrix U inside the matrix W, so the borders of this new matrix become full of zeros, or in anothers words matrix U surrended by zeros.
For example:
[0 0 0 0 ...
0 1 1 0 ...
0 0 0 0]
´
thanks in advance
Accepted Answer
More Answers (1)
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!