I would like to perform an element-wise operation like:
matrixOne(indices) :*= matrixTwo(indices)
i.e.
matrixOne(indices) = matrixOne(indices) :* matrixTwo(indices)
Although I don't believe that syntax works, and I don't see an easy way of doing this. Is there a simple way that doesn't involve a loop over the elements?
Thanks!
But it does work!