Row Number Returned During Iterations

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.

 Akzeptierte Antwort

madhan ravi
madhan ravi am 8 Aug. 2019

0 Stimmen

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

Weitere Antworten (1)

Jay
Jay am 8 Aug. 2019

0 Stimmen

I just realized that.
Too many hours coding.
Thank you.

Kategorien

Gefragt:

Jay
am 8 Aug. 2019

Beantwortet:

Jay
am 8 Aug. 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by