MATLAB: How to separate element from cell MATLAB 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] Best Answer unique([U{:}]) Related SolutionsMATLAB: How to convert cell array to double c = {[1 2],[2 3]}s = cell2mat(c)s = unique(s) MATLAB: Convert space separated string table to cell >> Dec = reshape( hex2dec( regexp( reshape( Table', 1, [] ), '..\s?', ... 'match' )), 8, [] )' Dec = 162 108 51 4 0 129 0 128 63 17 101 1 10 0 0 0 Related QuestionHow can i put cell value in a vectorHow to choose randomly value from cellHow to fill the cell arrayHow to intersect between two cell arraySplit a cell that contains a string
Best Answer