How do I remove paired data in a matrix?
Show older comments
Let's say I have a matrix,
A =
1 0
-2 -9
3 7
4 -3
-9 10
5 6
How would I be able to filter it out so that both columns are positive numbers? If either column is negative, then you should delete the whole row. The output should be
A =
1 0
3 7
5 6
I am stuck and don't know the direction to go towards. How should I do this? Any help will be appreciated. Thank you!
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB 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!