how to multiply 3d matrix with 2d matrix

1 view (last 30 days)
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
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

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!