MATLAB: Limiting the values of a column limiting values I have a column 'y' contains different values. I want to only take the values between -10 and 10 in an other column. How can I do that? Best Answer If you mean that y is a column vector, theny_new = y((y>=-10) & (y<=10))will give you a new column vector with only the values between (and including) -10 and 10.
Best Answer