vmpcorrelationprobability.m
来自「vmp is the file generate from Brainvoyag」· M 代码 · 共 25 行
M
25 行
function thresh_and_percent = vmpCorrelationProbability(path,vmp);
% syntax: thresh_and_percent = vmpCorrelationProbability(path,vmp);
%
% This function was written by:
% Hagar Gelbard
% Rafi Malach's Lab
% Weizmann Institute of Science
% Rehovot, Israel
% hagar.gelbard@weizmann.ac.il
vmpCorrVec = vmpReturnVec(path, vmp);
VMPmax = max(vmpCorrVec);
VMPmin=min(vmpCorrVec);
voxelsNo = length(vmpCorrVec);
threshs = [VMPmin:0.01:VMPmax];
thresh_and_percent = zeros(length(threshs),2);
thresh_and_percent(:,1) = threshs';
for i = 1:length(thresh_and_percent)
thresh = thresh_and_percent(i,1);
thresh_and_percent(i,2) = 1-length(find(vmpCorrVec<thresh))/voxelsNo;
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?