MATLAB: How to pick values that is below a certain value in a matrix/vector matrixvector Hi, I have a vector (A) that contains 10 values. E.g. A = [1 5 9 4 6 2 1 7 6 4] What I want is to pick values from the vector that is larger than 5 and sample these in a new vector. Is there an easy way to do this? Thanks! Best Answer you can try: B = A(A>5)I hope this helps Related SolutionsMATLAB: Restricting a vector size Try this:a = [1 2 3 4 5 6 7 8 9 10];Out = a(a >= 2 & a <= 6); MATLAB: Change position values between two vectors This works:a=[73 312 135 192 0 122]; b=[2 1 5 4 6 3];Result = a(b) Related QuestionWhhat is the best way to remove repitions of two or three vectorsMaking a matrix/vector using loopAdd an integer x to certain values of a vectorUnexpected numerical errors in matrix/vector multiplicationSelecting values of a vectorFind the mean of a specific set of values in matrix/vector
Best Answer