how can i multiply 2 matrices with different dimension ?
Show older comments
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 Comments
Walter Roberson
on 25 Oct 2017
Rr * PQRg
would be 3 x 110 under those circumstances, so it is not clear what your question is?
ladan hz
on 26 Oct 2017
Edited: Walter Roberson
on 26 Oct 2017
Walter Roberson
on 26 Oct 2017
You are overwriting all of AnVel every iteration of the "for" loop. It seems unlikely that is what you want to do.
Answers (2)
John D'Errico
on 25 Oct 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 Comment
ladan hz
on 26 Oct 2017
Edited: Walter Roberson
on 26 Oct 2017
KSSV
on 25 Oct 2017
YOu can happily multiply them using *.
Rr = rand(3,3) ;
PQRg = rand(3,110) ;
P = Rr*PQRg
Remmember multiplication law?
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!