In Matlab, I have a vector, X, that contains N real values:
- 0.001
- 0.003
- 0.006
- 0.009
- 0.007
- 0.006
I would like to create a new vector, Xb, that contains all the M values of X that are less than 0.005 (M <= N).
How could I do it?
I’ve tried with:
Xb = X<0.005
but it gives me a vector of N values 0s or 1s.
Thanx
1 Answer