Adding two different size matrices
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Più risposte (1)
Andrei Bobrov
il 14 Mag 2013
A=ones(100,50);
A2 = zeros(max(A));
A2(1:numel(A)) = A;
B = A2 + A2';
0 Commenti
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!