I have U like that :
U =
1×2 cell array
[1×2 double] [1×2 double]
>> U{1}
ans =
1 2
>> U{2}
ans =
2 3
I want to extract value of U and put them in an array sitem= [ ] without duplicate value

 채택된 답변

Stephan
Stephan 2019년 12월 9일

0 개 추천

c = {[1 2],[2 3]}
s = cell2mat(c)
s = unique(s)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Cell Arrays에 대해 자세히 알아보기

제품

릴리스

R2017a

질문:

2019년 12월 9일

답변:

2019년 12월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by