MATLAB Answers

How to convert cell array to double?

10 views (last 30 days)
Mira le
Mira le on 9 Dec 2019
Answered: Stephan on 9 Dec 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

  0 Comments

Sign in to comment.

Accepted Answer

Stephan
Stephan on 9 Dec 2019
c = {[1 2],[2 3]}
s = cell2mat(c)
s = unique(s)

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Products


Release

R2017a