Skip to main content
1-Visitor
May 4, 2016
Question

Element by element Multiplication

  • May 4, 2016
  • 1 reply
  • 18034 views

I have 2 matrices that I need to multiply in the same way we normally add matrices.

a=(1,3,5)

b=(2,4,6)

a*b=(2,12,30)

How can I get this result? I want to multiply the first row with the first row and make that the new first row, etc.

1 reply

23-Emerald V
May 4, 2016

Look up the "vectorize" operator in your version of Mathcad.  The vectorize operator is intended for precisely this kind of situation. 

Stuart

(I would have posted an example, but I'm without Mathcad at the moment)

23-Emerald V
May 4, 2016

Here's an example in Mathcad 15 ...

Stuart