Within a loop in my code I use a one-liner to find and plot the minimum of some potential (for clarity: the 7 corresponds to the cells containing the potential values, the 5 to the x-values):
plot(PDdata{subject,5}{1,1}(find(PDdata{subject,7}==...
min(PDdata{subject,7}))),min(PDdata{subject,7}),'ko')
Now Matlab suggests to use logical indexing instead of FIND and although I've looked into it only briefly, it doesn't strike me as something I should do here. Main question here is thus whether I should employ logical indexing (I prefer to keep it a one-liner!), and if so: how?
I apologize in advance for asking such a minor question, but I'm trying to increase my Matlab knowledge so hopefully a short answer would help me out already!