How to separate element from cell?

1 visualizzazione (ultimi 30 giorni)
Mira le
Mira le il 25 Nov 2019
Commentato: Mira le il 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]

Risposta accettata

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

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by