MATLAB Answers

How to separate element from cell?

1 view (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]

  0 Comments

Sign in to comment.

Accepted Answer

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

  1 Comment

Mira le
Mira le on 25 Nov 2019
Thank you, it works

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags