Adding two different size matrices
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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..........
0 commentaires
Réponse acceptée
Plus de réponses (1)
Andrei Bobrov
le 14 Mai 2013
A=ones(100,50);
A2 = zeros(max(A));
A2(1:numel(A)) = A;
B = A2 + A2';
0 commentaires
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!