Adding two different size matrices
显示 更早的评论
Hi all
I have a one matrice whos size is 100x50 let say
A=ones(100,50)
and I want to add it with its transpose
B=A+A';
but I am getting error of matrix dimensions.
Any help is appreciated..........
采纳的回答
更多回答(1 个)
Andrei Bobrov
2013-5-14
A=ones(100,50);
A2 = zeros(max(A));
A2(1:numel(A)) = A;
B = A2 + A2';
类别
在 帮助中心 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!