MATLAB: Extracting data from cell

celldataextract

I have a 12460×1 cell array with the content "<asdasd=!a1=-10.0" in each cell. I need the double values at the end and convert this to a matrix. Please note that there is always one more number in the cells and the values that I need could be positive or negative. Thanks in advace.

Best Answer

% z - your cell array.
x = regexp(z,'[\+\-]?\d+\.\d+$','match');
x = [x{:}]';
out = str2double(x);