How to separate element from cell?

U=SI
U =
1×2 cell array
[1×2 double] [1×2 double]
U{1}
ans =
1 2
>> U{2}
ans =
2 3
My question is: how to separate element of cell, and put them in vector:
vect=[ 1 2 3]

 採用された回答

Andrei Bobrov
Andrei Bobrov 2019 年 11 月 25 日

0 投票

unique([U{:}])

1 件のコメント

Mira le
Mira le 2019 年 11 月 25 日
Thank you, it works

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

タグ

質問済み:

2019 年 11 月 25 日

コメント済み:

2019 年 11 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by