I am trying to find the smallest nonzero magnitude element of a vector, D. Note that D is not integers. I am eliminating nonzero entries using the `find` command (first line below). The editor says to replace `find` with logical indexing, but replacing `D(find(D))` with `D(D)` returns an error. This is not slowing my code very much, but the editor's warning is mildly bothersome. How do I use logical indexing to fix this?