How to compare column A and B based on the column C condition?
Show older comments
Hello, I am a beginner at Matlab.
If I want to compare columnes A and B when column C is satisfied with the condition.
for example, in the following matrix,
in case of A(:, 3) == 1,
comparing A(:, 1) to A(:,2) is my goal. How shoud I do?
A = [1 7 0; 4 2 1;8 2 1; 2 4 1; 9 4 0]
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with 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!