필터 지우기
필터 지우기

Union of cell matrix

조회 수: 4 (최근 30일)
raj singh
raj singh 2016년 6월 8일
댓글: raj singh 2016년 6월 9일
I have a cell matrix
A={[1 2 3] [2 8] [9 2 5]};
I want unique value or union of A.
The solution should be like this = [1 2 3 5 8 9]
Please give me the

채택된 답변

KSSV
KSSV 2016년 6월 8일
unique(cell2mat(A))
  댓글 수: 1
raj singh
raj singh 2016년 6월 9일
Thanks....

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Stephen23
Stephen23 2016년 6월 8일
>> A={[1 2 3] [2 8] [9 2 5]};
>> unique([A{:}])
ans =
1 2 3 5 8 9
  댓글 수: 1
raj singh
raj singh 2016년 6월 9일
Thanks.....

댓글을 달려면 로그인하십시오.

카테고리

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