updtfis.m
来自「模糊控制工具箱,很好用的,有相应的说明文件,希望对大家有用!」· M 代码 · 共 52 行
M
52 行
function updtfis(figNumber,fis,guiList)
%UPDTFIS Update all fuzzy GUI tools as needed.
% UPDTFIS(figNumber,FIS,guiList) updates the fuzzy GUI tools
% specified by the list guiList with the new fuzzy inference
% system matrix FIS. figNumber is the figure for the current
% GUI tool making the update request.
% Ned Gulley, 9-15-94
% Copyright 1994-2002 The MathWorks, Inc.
% $Revision: 1.19 $ $Date: 2002/04/14 22:21:22 $
% Need to check all potentially open related windows.
nameList=[ ...
'FIS Editor '
'Membership Function Editor'
'Rule Editor '
'Rule Viewer '
'Surface Viewer '
'Anfis Editor '];
fisName=fis.name;
for guiIndex=1:size(nameList,1)
name=deblank(nameList(guiIndex,:));
newFigNumber=findall(0, 'Type', 'figure', 'Name',[name ': ' fisName]);
if length(newFigNumber)>1,
% There is more than one of the same editor for the same system present.
% One should be closed and the others should be updated.
close(newFigNumber(2:length(newFigNumber)));
newFigNumber=newFigNumber(1);
end
if ~isempty(newFigNumber),
if newFigNumber~=figNumber %do not reset fis for current figure
thisfis{1}=fis;
set(newFigNumber,'UserData',thisfis);
end
if ~isempty(guiList)
if any(guiIndex==guiList) & strcmp(get(newFigNumber,'Visible'),'on'),
% We need to explicitly update these GUIs
% (don't bother if its missing or hidden)
% statmsg(figNumber,['Updating ' name]);
figure(newFigNumber);
tag=get(newFigNumber,'Tag');
eval([tag ' #update'])
end
end
end
end
figure(figNumber);
%statmsg(figNumber,'Ready');
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?