how to multiply 3d matrix with 2d matrix

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 comentario

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

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Preguntada:

el 11 de En. de 2016

Comentada:

el 12 de En. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by