I am trying to do the following. I have two column vectors as follows:
I am trying to make the values of b corresponding to the locations of a negative in a, negative. so the result would be
The last three values of b would be changed to negative because the last three values of a are negative. Both column vectors are the same length.