MATLAB: Cell to vector transformation

vectors and cells

hi ! I have a cell of the size 14500*1. it is composed in this way:
d={a b c 120 15 12 20 13 a b c 3 2 5 5 6 a b c …..}
three letters then five numbers.
I want to have from this cell just a vector of numbers. How to do this in matlab?

Best Answer

idx = cellfun(@isnumeric,d); %find the numeric values in cellarray
out = [d{idx}]; %retrieve values from cell array