필터 지우기
필터 지우기

Remove redundancy values from matrix

조회 수: 3 (최근 30일)
Anusha
Anusha 2013년 10월 24일
답변: Wayne King 2013년 10월 24일
Any possible to remove the duplicate entries
S=[2 3 4 5 4 4 4;2 3 4 2 3 4 5;3 4 4 5 5 2 3];
I want the output will be
A=[2 3 4 5]

채택된 답변

Wayne King
Wayne King 2013년 10월 24일
S=[2 3 4 5 4 4 4;2 3 4 2 3 4 5;3 4 4 5 5 2 3];
S1 = unique(S);

추가 답변 (1개)

Andrei Bobrov
Andrei Bobrov 2013년 10월 24일
A = unique(S).';

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by