Matrix dimensions must agree error for backslash.
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Vinay Kumar Kuthunur Gopala Krishna Rao
el 4 de Dic. de 2016
Comentada: KSSV
el 4 de Dic. de 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 comentarios
Respuesta aceptada
KSSV
el 4 de Dic. de 2016
Editada: KSSV
el 4 de Dic. de 2016
Try A\B'
2 comentarios
Vinay Kumar Kuthunur Gopala Krishna Rao
el 4 de Dic. de 2016
Editada: Vinay Kumar Kuthunur Gopala Krishna Rao
el 4 de Dic. de 2016
KSSV
el 4 de Dic. de 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.
Más respuestas (0)
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!