MATLAB Answers

How to multiply arrays to create a larger one

1 view (last 30 days)
Raz Firanko
Raz Firanko on 25 Nov 2020
Edited: per isakson on 27 Nov 2020
Let's say I have the following two arrays
I want to generate the specific "tensor product", for example:
Such that C is an 4x3x5 array which it's (i,j,k) entry is A(1,i,j)*B(2,k).
However, it seems that the regular multiplication operator does not fit my needs.
How do I do that in Matlab?

Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by