Matrix dimensions must agree error for backslash.
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Vinay Kumar Kuthunur Gopala Krishna Rao
le 4 Déc 2016
Commenté : KSSV
le 4 Déc 2016
Hi all, I have a 1080x1080 matrix A and 1x1080 matrix B. The values in matrix B are all zeroes except for two values. When I use A\B, I get the 'Matrix dimensions must agree.' error. Where am I going wrong?
0 commentaires
Réponse acceptée
KSSV
le 4 Déc 2016
Modifié(e) : KSSV
le 4 Déc 2016
Try A\B'
2 commentaires
Vinay Kumar Kuthunur Gopala Krishna Rao
le 4 Déc 2016
Modifié(e) : Vinay Kumar Kuthunur Gopala Krishna Rao
le 4 Déc 2016
KSSV
le 4 Déc 2016
B should be a column matrix with rows equal to rows in A.B' is transpose of B. 1*1080 is transposed to 1080*1.
Plus de réponses (0)
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!