Am i correct with my conversion of a Logical indexing to a for loop?

Antworten (2)

Walter Roberson
Walter Roberson am 2 Dez. 2015

0 Stimmen

Your loop variable should be over all the valid indices of the array, and inside the loop you should have a test that decides what to do.
Once you understand while loops from your other questions you should be able to do the conversion for this question as well.

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 2 Dez. 2015

Beantwortet:

am 2 Dez. 2015

Community Treasure Hunt

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

Start Hunting!

Translated by