I have a matrix BB = [-1 5 6;4 -3 2;5 6 -7]. How can i print the location(index) of the positive elelments using for loop and using while loop ?
Ältere Kommentare anzeigen
I have this matrix BB = [-1 5 6;4 -3 2;5 6 -7]. I want to know how can I display the location of the positive elements using for loop and using while loop
4 Kommentare
Paolo
am 24 Jul. 2018
I am assuming this is a homework question as we did the while loop in the previous question.
For educational purposes, it would be good to see your attempt. What have you tried and what are you having trouble with?
Fares Alfares
am 24 Jul. 2018
Bearbeitet: Walter Roberson
am 24 Jul. 2018
Fares Alfares
am 24 Jul. 2018
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!