Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Hello,
I would like to multiply only certain numbers in a matrix. Only numbers lower than a certain variable.
Lets say I have a 1x5 matrix [23 12 89 44 8] and I want to multiply all numbers less than 30 (in the matrix) by 2.
New matrix would output the following:
[46 24 89 44 16]
Can someone point me in the right direction...
Thanks!
Thank you so much, this worked perfectly...
OK, so here's a third variant
and here a further "classic" one turned into a function
