MATLAB: Matrix limits

matrix manipulation

Hello,
I currently have a set of about 200 2 by 200 matrices. I need to remove some values that are over a maximum value.
I need a way to set a limit for the first column (X co-ord), in order to remove the this value and the corresponding value in the second column (the Y co-ord).
Each matrix can have 1,2 or 3 values over the maximum, therefore I need to set a limit.
I appreciate this is probably a very simple issue for you guys.
Cheers

Best Answer

hei,
this might work:
A(A(:,1)>limit,:) = []
hope this helps