typeofvar.m

来自「student teacher and proferssor llove thi」· M 代码 · 共 12 行

M
12
字号
function [count,whichone]=typeofvar(str,inoutother,cw);thisstr=str;if ~isempty(findstr(str,'_f')), thisstr=str(1:(findstr(str,'_f')-1)); endif length(find(strcmp(thisstr,inoutother{1})))>0, whichone=1; endif length(find(strcmp(thisstr,inoutother{2})))>0, whichone=2; endif length(find(strcmp(thisstr,inoutother{3})))>0, whichone=3; endif ~isreal(getfield(cw,thisstr)) count=1;else count=0;end

⌨️ 快捷键说明

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