⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 varindex.m

📁 The goal of SPID is to provide the user with tools capable to simulate, preprocess, process and clas
💻 M
字号:
function [index]=varIndex(varFull, varSub),
% obtain the index(or position) of a subset of variables.

nv=length(varSub);
index=zeros(1,nv);
for i=1:nv,
   k=find(strcmp(lower(deblank(varSub{1,i})),lower(deblank(varFull))));
   if ~isempty(k)>0,
      index(i)=k;
   else
      disp(['Variable',varSub{1,i},' not found !!!!']), 
      return,
   end
end

return,

⌨️ 快捷键说明

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