How to convert cell array to double?

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 ExchangeCell 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