hi,
I was wondering what best practices are for the following:
i have two matrices, a1(500,40) and a2(1,500) and for a1, which is boolean, i want to separate out the arrays depending on the values in a particular column (ie. true or false), i would also need to separate the corresponding entry in a2.
i can do this with a couple of loops, or perhaps even by concatenating a1 + a2, doing the logical test and then separating them again, but was wondering if there is a commonly used method for something like this? (very new to matlab)
thanks!