MATLAB: Row Number Returned During Iterations

MATLAB and Simulink Student Suiterow indexing

I have an if statement that goes through all rows looking for a specific condtion.
When the condtion is met, I want to know only what row that condtion was true.
What syntax would return just the rows?
Note: I do not want to use the ismember function as I am using the iteration (row) to referrence another array.

Best Answer

Iterator indicates which row satisfied that condition , so why not save it?