📄 arithint.m
字号:
function arithint()
clc;
fid=fopen('seq1.txt','r');
seq=fread(fid,'*char');
fclose(fid);
seq=reshape(seq,1,length(seq));
[alpha cnt]=countmodel(seq);
if ~isempty(alpha)
btag=arithintcod(alpha,cnt,seq);
disp(strcat('Tag =',btag));
seq=arithintdecod(btag,alpha,cnt,length(seq));
disp('Sequence = ');
disp(seq);
else
display('Empty Sequence....');
end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -