I have a vector, X [197 1] which has values of 0 or positive numbers. I'd like to identify those indexes with only positive numbers as well as only use those values later in an algorithm? How best can I do this? Thank you.

# MATLAB: Extracting positive numbers

indexing;selecting;extracting

## Best Answer