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

📄 updtfis.m

📁 交流 模糊控制 交流 模糊控制
💻 M
字号:
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/02 21:25:29 $

% 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -