Info

This question is closed. Reopen it to edit or answer.

What is a code to remove elements that are identical between each other, in the 2 columns in a nx2 matrix?

1 view (last 30 days)
If I have a matrix like:
A = [2 5; 5 6; 1 1; 2 2; 4 8; 2 6; 3 3]
What is a generalized code to remove the elements that are identical, between each other, in the 2 columns in a nx2 matrix (e.g. 2 2; 3 3 etc.)?

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!