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 ?
Show older comments
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 Comments
Paolo
on 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
on 24 Jul 2018
Edited: Walter Roberson
on 24 Jul 2018
Fares Alfares
on 24 Jul 2018
Accepted Answer
More Answers (0)
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!