MATLAB: Cell array with numeric values only

MATLABnumeric-value$only

Conver this array to an array with numbers only so it can be used for a graph

Best Answer

%if true
% code
% end
C = {'long: 151.125#';'long: 151.126#'}
for i=1:length(C)
nn{i}=(C{i}(7:13));
end
A = cell2mat(nn')
B = str2num(A)% array with numbers only