how to multiply 3d matrix with 2d matrix
1 view (last 30 days)
Show older comments
i have one matrix 'H' with dimension of 2976 X 2976 and another one is 'Y' of 2 X 2 X 2976. i want H'*y and for this i use " Y(p,q,:)= H'*squeeze(y(p,q,:))". But due to use of squeeze function i'm getting correct values at first running of code but after first running code if i again run code i got different values at second attempt i.e values vary at every time if i run code.I'm attaching snapshot of my result with this. anyone can solve this issue, it will be very helpful.
1 Comment
Sivakumaran Chandrasekaran
on 12 Jan 2016
the best solution is.. take a of size 3,3... and b of size 2,2,1...multiply it.. check manual calculation also.. cross check it.. you can easily find how matlab works.. then you can apply for big sized matrix
Answers (0)
See Also
Categories
Find more on Logical 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!