- result is not initialized
- in result the number 1:m_sub is same, but you are mentioning it all time.
- What to find? [row, col] = find(result) ??
More I can comment knowing what's the data is.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!