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

📄 getfidx.m

📁 模糊神经网络采用matlab编程 o install NEFCON follow these steps: 1. Unpack the tar file NEFCON.TAR into your MA
💻 M
字号:
function [idx] = getfidx(fismat, vartype, name); %GETFIDX  Get varindex of in- or output variable 'name'. %         Returns 0 if 'name' doesn't exist in fismatrix. %%         fismat:  fismatrix%         vartype: 'input' or 'output'%         name:    name of variable%% See also fuzzy.%	Author(s): Andreas Nuernberger, 08/1996  %#realonly if nargin ~= 3, 	error('Too many or too few input arguments!'); end  NumInputs	= getfis(fismat, 'NumInputs'); NumOutputs	= getfis(fismat, 'NumOutputs'); InLabels	= setstr(getfis(fismat, 'InLabels')); OutLabels	= setstr(getfis(fismat, 'OutLabels'));  mbintscalar(NumInputs); mbintscalar(NumOutputs);  mfname = deblank(name); idx = 0;  if strcmp(deblank(vartype), 'input'),     for i = 1:NumInputs,         if strcmp(deblank(InLabels(i,:)), mfname)         	idx = i;         end     end else 	for i = 1:NumOutputs,         if strcmp(deblank(OutLabels(i,:)), mfname)     		idx = i;         end 	end end     

⌨️ 快捷键说明

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