two2o.m
来自「Fona编译码程序」· M 代码 · 共 13 行
M
13 行
function res=two2o(intwo)
temp=num2str(intwo);
count=length(temp);
for i=1:1:count
if(temp(i)=='2')
res(i)='0';
else
res(i)='1';
end
end
res(count+1)='-';
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?