How to add zeros column and row at the beginning of matrix
12 次查看(过去 30 天)
显示 更早的评论
I have A and B
A=[1,3,5;4,6,8;9,7,4]
B=[1,2,4,6;7,1,2,4;6,7,8,9;4,5,6,7]
if size(B)> size(A) Add zeros column and row at the beginning of matrix A
New_A=[0,0,0,0;0,1,3,5;0,4,6,8;0,9,7,4]
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!