Perfect combination of 2016b new function and delicate thought.
Nice!! I'm not the only one who solved this problem without str2num... ;-)
Of course your are not :)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!