118k views
2 votes
How do you multiply two arrays together?

User Yeroc
by
7.3k points

1 Answer

3 votes
C = A . * B multiplies arrays A and B by multiplying corresponding elements. The sizes of A and B must be the same or be compatible. If the sizes of A and B are compatible, then the two arrays implicitly expand to match each other.
User Jloriente
by
8.2k points