Replace Duplicate Row Value in Matrix with other value of the matrix to create unique combination row wise
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello everyone,
At this moment i am stuck with the following problem. I want to replace the duplicate values of each row with other value of the matrix. Each row will represnt a unqiue combination. For example,
My input matrix is
S = [3 2 3; 2 1 2; 1 2 1; 3 1 3;];
the output should be like:
S=[1 2 3; 2 1 3; 3 2 1; 3 1 2;];
Thanks in advance!
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!