How to separate element from cell?

1 Ansicht (letzte 30 Tage)
Mira le
Mira le am 25 Nov. 2019
Kommentiert: Mira le am 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]

Akzeptierte Antwort

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

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by