gusucode.com > 《精通matlab 7》包括配套光盘 > 配套光盘里的程序附件/Ex-07/Ex0714.m
%例7-14 把字符数组转换成数值数组 name = 'Thomas R. Lee'; name = double(name) name = char(name) str = '37.294e-1'; val = str2num(str) c = {'37.294e-1'; '-58.375'; '13.796'}; d = str2double(c) whos c d hex2dec('3ff') bin2dec('010111') base2dec('212',3)