文本指纹是文本的重要特征,往往和解密算法联系在一起。
以下使用matLab函数形式实现了文本指纹的统计
function [ news ] = zhiwen( txtloc )
%ZHIWEN 显示文本指纹并以double类ascii码形式返回文本
% Detailed explanation goes here
fid=fopen(txtloc,‘r‘);
news=fscanf(fid,‘%s‘);
news=lower(news);
news=double(news);
news=news(news>96&news<123);
x=97:122;
hist(news,x);
end
原文:http://www.cnblogs.com/zcy4ml/p/4887454.html