I'm trying to program a loop which runs through a vector matrix and throws out values which I don't want and puts values I do want into a new matrix.
Lets give 2 situations:
The first -> I want to check a column matrix which has a number of heights say, 10ft, 20ft, 30ft, 50ft. I want to set a certain height, say 25ft. The loop should check each height if it is greater than 25ft. If it is greater than 25ft than disregard the value. However the last value of the new matrix should be 25ft. So in the end it would be 10ft, 20ft, 25ft
Second -> You have a column matrix of random values. You only want values between X and X', the rest may be discarded.
Thanks in advance for any suggestions!!