how can i multiply 2 matrices with different dimension ?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
i have Rr=3*3 matrices and PQRg=3*110 and i want to multiply them and get AnVel=[Rr]*[PQRg]which is 3*110 ? how is possible?
3 comentarios
ladan hz
el 26 de Oct. de 2017
Editada: Walter Roberson
el 26 de Oct. de 2017
Walter Roberson
el 26 de Oct. de 2017
You are overwriting all of AnVel every iteration of the "for" loop. It seems unlikely that is what you want to do.
Respuestas (2)
John D'Errico
el 25 de Oct. de 2017
Um, read the getting started tutorials?
AnVel = Rr*PQRg;
It is legal to read the documentation. You might even learn how to use the language.
1 comentario
ladan hz
el 26 de Oct. de 2017
Editada: Walter Roberson
el 26 de Oct. de 2017
KSSV
el 25 de Oct. de 2017
YOu can happily multiply them using *.
Rr = rand(3,3) ;
PQRg = rand(3,110) ;
P = Rr*PQRg
Remmember multiplication law?
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!