MATLAB: Convert text cell to double

cell arrayconvertdoubleMATLABMATLAB and Simulink Student Suite

hi, I have a Cell array like
'$88.10'
'$83.01'
'$80.22'
'$80.22'
how can I convert it to an array of doubles ?
Thanks
Tristan

Best Answer

z = {'$88.10'
'$83.01'
'$80.22'
'$80.22'};
out = cellfun(@(x)str2double(x(2:end)),z);