rri_islowvariability.m

来自「绝对经典,老外制作的功能强大的matlab实现PLS_TOOBOX」· M 代码 · 共 22 行

M
22
字号
function status = rri_islowvariability(bodat, behavdata)

   status = 0;

   %  Get what is in this particular behavmat
   %
   origU=unique(behavdata);

   %  Get how are those unique values clustered
   %  & does any one of them appear too often
   %
   for j=1:length(origU);
      bodatU(j)=length(find(bodat==origU(j)));
   end

   if max(bodatU)/length(behavdata) >= 0.5
      status = 1;
   end

   return;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?