How to convert cell array to double?

5 Ansichten (letzte 30 Tage)
Mira le
Mira le am 9 Dez. 2019
Beantwortet: Stephan am 9 Dez. 2019
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

Akzeptierte Antwort

Stephan
Stephan am 9 Dez. 2019
c = {[1 2],[2 3]}
s = cell2mat(c)
s = unique(s)

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Produkte


Version

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by