vigenere密码解密的matlab实现

源代码在线查看: frequency.m

软件大小: 18 K
上传用户: flyhack007
关键词: vigenere matlab 密码 解密
下载地址: 免注册下载 普通下载 VIP

相关代码

				function yct = frequency(txt);				% This function tabulates the amount of times each character 'a'-'z' 				% occurs in txt.								ychar=zeros(26,1);				yct=zeros(26,1);								for k=0:25,				   ychar(k+1)=char('a'+k);				   v=(txt==ychar(k+1,1));   %perform check to see 				   yct(k+1)=sum(v);				   ydisp=[ychar(k+1), '  ',num2str(yct(k+1))];				   disp(ydisp);				end;							

相关资源