How to separate element from cell?

2 views (last 30 days)
Mira le
Mira le on 25 Nov 2019
Commented: Mira le on 25 Nov 2019
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]

Accepted Answer

Andrei Bobrov
Andrei Bobrov on 25 Nov 2019
unique([U{:}])

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by