Hi Everyone,
I have a cell array called "data" containing a field "data.labels". In addition to that I have the cell "lbls" containing label strings and I would like to find the indices of elements in data.labels that contain lbls.
Using
idx = find(contains(data.labes,lbls));
is doing the job but returns the indices sorted in ascending order. How can I keep the original ordering of the indices?
Thanks in advance and all best,
M.
Best Answer