Cell to mat conversion (read only values before semicolon)

1 view (last 30 days)
I have the 100 x 1 cell as shown in fig. Here, for instance, row 26 got two set of entries seperated by semicolon, I would need to extract only the first entry (i.e. before semicolon). Please help me with this
Attached the cell for the refrence..

Accepted Answer

madhan ravi
madhan ravi on 8 Sep 2020
cell2mat(cellfun(@(x) x(1, :), cell_array, 'un', 0))

More Answers (0)


Find more on Numeric Types in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!