Matrix dimensions must agree when using .*
Mostrar comentarios más antiguos
Hi all,
I've been trying to multiply two matrices together and I can not find where I went wrong. I'm trying to multiply the matrix and it's transpose together however I am getting the error, "Matrix dimensions must agree."
The two matrices contain the following information:
Name Size Bytes Class Attributes
D_tranpose 6x16384 98304 uint8
D 16384x6 98304 uint8
Does anyone have any ideas? Thanks in advance
2 comentarios
Stephen23
el 21 de Mayo de 2017
@Amy Phan: you need to learn about the differences between array and matrix operations:
Niladri Halder
el 9 de Ag. de 2022
nn2_p = nn2{nImage}.*mask_s;
Matrix dimensions must agree.
Please Help. Thank you.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Resizing and Reshaping Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!