如题所述
第1个回答 2018-04-12
str = '123456789';
num = zeros(length(str)-1,1);
for i = 1:length(str)-1
num(i,1) = str2num(str(i:i+1));
end
disp(num)本回答被网友采纳
num = zeros(length(str)-1,1);
for i = 1:length(str)-1
num(i,1) = str2num(str(i:i+1));
end
disp(num)本回答被网友采纳