Skip to main content
4-Participant
March 10, 2025
Solved

Element wise multiplication of a 4x1 matrix by a 4x4 element matrix

  • March 10, 2025
  • 1 reply
  • 1066 views

I am trying to achieve something like the below (the equal sign is text only). I'm not even sure if this is mathematically possible however, and may require some manipulation to achieve?


StuartF_0-1741593575760.png


Here is what it looks like when I try to do it

StuartF_1-1741594153746.png

Appreciate any possible help with this, it's been a long while since I studied matrices!

I am on Prime 9.0 if that makes any difference.

Best answer by Fred_Kohlhepp

Try using the diag function on v:

Fred_Kohlhepp_0-1741601057991.png

 

1 reply

23-Emerald I
March 10, 2025

Try using the diag function on v:

Fred_Kohlhepp_0-1741601057991.png

 

StuartF4-ParticipantAuthor
4-Participant
March 10, 2025

Hi Fred,

 

That is excellent, thank you!

Marked as solved.

 

Many thanks,

Stuart