comparesim.m
来自「这是一个关于信息隐藏的源代码,是用vc++开发」· M 代码 · 共 25 行
M
25 行
%compareSim.m
function response = CompareSim(W, ResTest, M)
% response = COMPARESIM(W, Wtest, M) compares the sim between W and
% M-1 random vector of the same size.
% The value of ResTest is located in the M/2 place.
% This function must show a peak if W was present in the image
if (nargin<2)
error('Se necesitan m醩 par醡etros')
end
if (nargin == 2)
M = 500;
end
[s1 N]=size(W);
for i = 1:M
if (i == floor(M / 2))
aux=ResTest;
else
X = randn(1,N);
aux=similar(W, X);
end
response(i) = aux;
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?