How do I fit smaller matrix into a larger matrix
13 次查看(过去 30 天)
显示 更早的评论
Hello everyone,
I have A = matrix of 23x23, and I must reshape this matrix to the same size of an matrix I of 256x256. I want to form a 256x256 matrix that take all values in the 23x23 matrix and rest of the elements are zeros. How would I go about doing that?
I do not want to use pad, I simply want to create a zeros matrix with size of I and replace the values in zeros matrix with that of A.
Thank you for your time.
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!