亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ruleedit.m

?? 模糊控制工具箱,很好用的,有相應的說明文件,希望對大家有用!
?? M
?? 第 1 頁 / 共 3 頁
字號:
function ruleedit(action);
%
%  Purpose
%  Rule editor and parser.
%  Synopsis
%  ruleedit('a')
%  ruleedit(a)
%  Description
%  
%  The Rule Editor, when invoked using ruleedit('a'), is used to modify the
%  rules of a FIS structure stored in a file, a.fis. It can also be used to
%  inspect the rules being used by a fuzzy inference system. 
%  To use this editor to create rules, you must first have all of the input
%  and output variables you want to use defined with the FIS editor. You can
%  create the rules using the listbox and check
%  box choices for input and
%  output variables, connections, and weights. 
%  The syntax ruleedit(a) is used when you want to operate on a workspace
%  variable for a FIS structure called a. 
%
%  Menu Items
%  On the Rule Editor, there is a menu bar that allows you to open related GUI 
%  tools, open and save systems, and so on. The File menu for the Rule Editor 
%  is the same as the one found on the FIS Editor. Refer to the Reference 
%  entry fuzzy for more information.
%  Use the Edit menu items:
%  Undo: to undo the most recent change.
%  Use the View menu items:
%  Edit FIS properties... to invoke the FIS Editor.
%  Edit membership functions... to invoke the Membership Function Editor.
%  View rules... to invoke the Rule Viewer.
%  View surface... to invoke the Surface Viewer.
%  Use the Options menu items:
%  Language to select the language: English, Deutsch, and Francais
%  Format: to select the format: 
%  verbose uses the words *if* and *then* and so on to create actual 
%  sentences.
%  symbolic substitutes some symbols for the words used in the verbose mode. 
%  For example, *if A and B then C* becomes *A & B => C.*
%  indexed mirrors how the rule is stored in the FIS matrix.
%
%  See also ADDRULE, MFEDIT, RULEVIEW, SHOWRULE, SURFVIEW

%   Ned Gulley, 3-30-94 Kelly Liu, 4-10-97, N. Hickey 03-17-01
%   Copyright 1994-2004 The MathWorks, Inc.
%   $Revision: 1.52.2.3 $  $Date: 2004/04/10 23:15:35 $

if nargin<1,
    newFis=newfis('Untitled');
    newFis=addvar(newFis,'input','input1',[0 1],'init');
    newFis=addvar(newFis,'output','output1',[0 1],'init');
    action=newFis;
end

if isstr(action),
    if action(1)~='#',
        % The string "action" is not a switch for this function, 
        % so it must be a disk file
        fis=readfis(action);
        action='#initialize';
    end
else
    % For initialization, the fis matrix is passed in as the parameter
    fis=action;
    action='#initialize';
end;

switch action,
case '#initialize',
    fisName=fis.name;
    fisType=fis.type;

   if isfield(fis, 'input')
     numInputs=length(fis.input);
   else
     numInputs=0;
   end
   if isfield(fis, 'output')
     numOutputs=length(fis.output);
   else
     numOutputs=0;
   end

   if isfield(fis, 'rule')
    numRules=length(fis.rule);
   else
    numRules=0;
   end
    %===================================
    % Information for all objects
    frmColor=192/255*[1 1 1];
    btnColor=192/255*[1 1 1];
    popupColor=192/255*[1 1 1];
    editColor=255/255*[1 1 1];
    axColor=128/255*[1 1 1];
    border=.01;
    spacing=.01;
    figPos=get(0,'DefaultFigurePosition');
    maxRight=1;
    maxTop=1;
    btnWid=.14;
    btnHt=0.05;
 
    %====================================
    % The FIGURE
    thisfis{1}=fis;
    figNumber=figure( ...
        'Name',['Rule Editor: ' fisName], ...
        'NumberTitle','off', ...
        'IntegerHandle','off',...
        'Color',frmColor, ...
        'CloseRequestFcn','fisgui #close',...
        'MenuBar','none', ...
        'Visible','off', ...
        'UserData',thisfis, ...
        'Position',figPos, ...
        'Tag','ruleedit', ...
        'BackingStore','off', ...
        'DockControls', 'off');
    figPos=get(figNumber,'position');

    %====================================
    % The MENUBAR items
    % Call fisgui to create the menubar items
    fisgui #initialize

    %========================================================
    % The MAIN frame 
    bottom=border;
    top=maxTop-border; 
    right=maxRight-border;
    left=border;
    frmBorder=spacing;
    frmPos=[left-frmBorder bottom-frmBorder ...
        right-left+frmBorder*2 top-bottom+frmBorder*2];
    mainFrmHndl=uicontrol( ...
        'Units','normal', ...
        'Style','frame', ...
        'Position',frmPos, ...
        'BackgroundColor',frmColor);
    %====================================

    bottom=border+4*spacing+btnHt;
    % The RULES frame 
    top=maxTop-border-spacing;
    right=maxRight-border-spacing;
    left=border+spacing;
    frmBorder=spacing;
    frmPos=[left-frmBorder bottom-frmBorder ...
        right-left+frmBorder*2 top-bottom+frmBorder*2];
    ruleFrmHndl=uicontrol( ...
        'Style','frame', ...
        'Units','normal', ...
        'Position',frmPos, ...
        'BackgroundColor',frmColor);
    %------------------------------------
    % The RULES edit window
    rulePos=[left top-(top-bottom)*2/5-border (right-left) (top-bottom)*2/5];
    if numRules>0,
        labelStr=' ';
    else
        labelStr=' ';
        msgStr=['No rules for system "' fisName '"'];
        statmsg(figNumber,msgStr);
    end
    name='rulewindow';
    pos=[left bottom btnWid*2 btnHt];
    ruleHndl=uicontrol( ...
        'Style','listbox', ...
        'Units','normal', ...
        'Position',rulePos, ...
        'BackgroundColor',editColor, ...
        'HorizontalAlignment','left', ...
        'Callback', 'ruleedit #getrule',...
        'Max',1, ...
        'Tag',name);
    %========radio button for and, or=========
    frmPos=[left bottom ...
        btnWid+spacing btnHt*2.6];
    clsFrmHndl=uicontrol( ...
        'Style','frame', ...
        'Units','normal', ...
        'Position',frmPos, ...
        'BackgroundColor',frmColor);
    labelPos=[left+1*spacing bottom+btnHt*2 ...
        btnWid*.9 btnHt];
    clsFrmHndl=uicontrol( ...
        'Style','text', ...
        'Units','normal', ...
        'Position',labelPos, ...
        'String', 'Connection',...
        'BackgroundColor',frmColor);
    pos=[left+2*spacing bottom+1*spacing btnWid*.6 btnHt];
    helpHndl=uicontrol( ...
        'Style','radio', ...
        'Units','normal', ...
        'Position',pos, ...
        'BackgroundColor',btnColor, ...
        'String','and', ...
        'Tag', 'radio',...
        'Max', 1,...
        'Value', 1,...
        'Callback','ruleedit #radio');
    pos=[left+2*spacing bottom+btnHt+1*spacing btnWid*.6 btnHt];
    helpHndl=uicontrol( ...
        'Style','radio', ...
        'Units','normal', ...
        'Position',pos, ...
        'BackgroundColor',btnColor, ...
        'String','or', ...
        'Tag', 'radio',...
        'Max', 1,...
        'Callback','ruleedit #radio');
    %=====weight text=================
    pos=[left+(btnWid)+btnHt/2+spacing bottom+btnHt*2 btnWid*.7 btnHt];
    helpHndl=uicontrol( ...
        'Style','text', ...
        'Units','normal', ...
        'Position',pos, ...
        'BackgroundColor',frmColor, ...
        'String','Weight:');
    pos=[left+btnWid+btnHt bottom btnWid/2 btnHt];
    helpHndl=uicontrol( ...
        'Style','edit', ...
        'Units','normal', ...
        'Position',pos, ...
        'BackgroundColor','white', ...
        'String',num2str(1),...
        'Callback', 'wStr=max(min(1, str2double(get(gcbo, ''String''))), 0); set(gcbo, ''string'', num2str(wStr))', ... 
        'Tag', 'weight');
    %=========delete======================
    boxDstn=btnWid+spacing;
    boxWidth=(right-left)/6;
    pos=[left+boxDstn*2 bottom btnWid btnHt];
    helpHndl=uicontrol( ...
        'Style','pushbutton', ...
        'Units','normal', ...
        'Position',pos, ...
        'String','Delete rule',...
        'Callback', 'ruleedit #delete',...
        'Tag', 'delete');
 
    %========button for add=========
    pos=[left+boxDstn*3 bottom btnWid btnHt];
    helpHndl=uicontrol( ...
        'Style','push', ...
        'Units','normal', ...
        'Position',pos, ...
        'BackgroundColor',btnColor, ...
        'String','Add rule', ...
        'Callback','ruleedit #add');
    %========button for apply=========
    pos=[left+boxDstn*4 bottom btnWid btnHt];
    helpHndl=uicontrol( ...
        'Style','push', ...
        'Units','normal', ...
        'Position',pos, ...
        'BackgroundColor',btnColor, ...
        'String','Change rule', ...
        'Callback','ruleedit #add');
    %=======buttons for shift=============
    pos=[right-2*spacing-btnWid*2/3 bottom btnWid/3 btnHt];
    helpHndl=uicontrol( ...
        'Style','push', ...
        'Units','normal', ...
        'Position',pos, ...
        'BackgroundColor',btnColor, ...
        'Tag', 'shiftright',...
        'String','<<', ...
        'Callback','ruleedit #shiftright');
    pos=[right-spacing-btnWid/3 bottom btnWid/3 btnHt];
    helpHndl=uicontrol( ...
        'Style','push', ...
        'Units','normal', ...
        'Position',pos, ...
        'BackgroundColor',btnColor, ...
        'Tag', 'shiftleft',...
        'String','>>', ...
        'Callback','ruleedit #shiftleft');

    %====================================
    % The CLOSE frame 
    bottom=border+4*spacing+btnHt;
    top=bottom+btnHt;
    right=maxRight-border-spacing;
    % Left should be snug up against Rule Format frame
    left=border+spacing;

    frmBorder=spacing;

    %====================================
    % The STATUS frame 
    bottom=border+spacing;
    top=bottom+btnHt;
    right=maxRight-border-spacing;
    left=border+spacing;
    frmBorder=spacing;
    frmPos=[left-frmBorder bottom-frmBorder ...
        (right-left)*2/3+frmBorder*2 top-bottom+frmBorder*2];
    mainFrmHndl=uicontrol( ...
        'Style','frame', ...
        'Units','normal', ...
        'Position',frmPos, ...
        'BackgroundColor',frmColor);

    frmPos=[left-frmBorder+(right-left)*2/3+frmBorder*3 bottom-frmBorder ...
        (right-left)*1/3-frmBorder top-bottom+frmBorder*2];
    mainFrmHndl=uicontrol( ...
        'Style','frame', ...
        'Units','normal', ...
        'Position',frmPos, ...
        'BackgroundColor',frmColor);

    %------------------------------------
    % The STATUS text window
    labelStr=['FIS Name: ' fisName];
    name='status';
    pos=[left bottom (right-left)/2 btnHt];
    txtHndl=uicontrol( ...
        'Style','text', ...
        'BackgroundColor',frmColor, ...
        'HorizontalAlignment','left', ...
        'Units','normal', ...
        'Position',pos, ...
        'Tag',name, ...
        'String',labelStr);
    %------------------------------------
    % The HELP button
%    bottom=bottom+spacing;
    labelStr='Help';
    callbackStr='ruleedit #help';
    helpHndl=uicontrol( ...
        'Style','push', ...
        'Units','normal', ...
        'Position',[right-2*btnWid-spacing bottom btnWid btnHt], ...
        'BackgroundColor',btnColor, ...
        'String',labelStr, ...
        'Callback',callbackStr);

    %------------------------------------
    % The CLOSE button
    labelStr='Close';
    callbackStr='fisgui #close';
    closeHndl=uicontrol( ...
        'Style','push', ...
        'Units','normal', ...
        'Position',[right-btnWid bottom btnWid btnHt], ...
        'BackgroundColor',btnColor, ...
        'String',labelStr, ...
        'Callback',callbackStr);
    ruleedit #update

    % Normalize all coordinates
    hndlList=findobj(figNumber,'Units','pixels');
    set(hndlList,'Units','normalized');

    % Uncover the figure
    thisfis{1}=fis;
    set(figNumber, ...
        'Visible','on', ...
        'UserData',thisfis, ...
        'HandleVisibility','callback');

%%init 
   index=1;
   localgetrule(figNumber, index, fis)
case '#update',
    %====================================
    
    figNumber=watchon;
    
    oldfis=get(figNumber,'UserData');
    fis=oldfis{1};
    numRules=length(fis.rule);
    fisName=fis.name;

    % The RULES FORMAT menu
    popupHndl=findobj(figNumber,'Type','uimenu','Tag','rulefrmt', 'Checked','on');
    formatStr=lower(get(popupHndl,'Label'));
    formatStr=deblank(formatStr);
    formatStr=fliplr(deblank(fliplr(formatStr)));
    % The RULES edit window
    name='rulewindow';
    hndl=findobj(figNumber,'Type','uicontrol','Tag',name);
    if numRules>0,
        langHndl=findobj(figNumber,'Type','uimenu', 'Tag', 'lang', 'Checked','on');
        lang=lower(get(langHndl,'Label'));

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品自拍偷拍| 欧美一卡在线观看| 国产色产综合产在线视频| 国产成人精品免费在线| 国产偷v国产偷v亚洲高清| 国产一区二区三区久久久| 久久亚洲免费视频| 色综合中文字幕| 亚洲sss视频在线视频| 精品久久久久久久久久久久久久久| 国产一区二区在线影院| 成人欧美一区二区三区视频网页| 欧美伊人精品成人久久综合97| 日本亚洲欧美天堂免费| 国产精品网站一区| 欧美精品高清视频| 不卡的电影网站| 美女脱光内衣内裤视频久久影院| 欧美激情自拍偷拍| 欧美日本在线播放| 成人精品免费看| 亚洲日本在线看| 欧美三级日韩三级国产三级| 久久99国产乱子伦精品免费| 亚洲欧洲av色图| 日韩一级成人av| 粉嫩av一区二区三区| 亚洲成人777| 国产亚洲欧美日韩俺去了| 国产成人亚洲综合a∨婷婷图片 | 亚洲精品成人悠悠色影视| 91精品国产综合久久香蕉麻豆| 国产91色综合久久免费分享| 奇米亚洲午夜久久精品| 亚洲一区视频在线观看视频| 国产精品五月天| 久久女同精品一区二区| 日韩一区二区三区视频在线| 欧美日韩一区二区三区四区| 95精品视频在线| 成人app在线观看| 国产成人在线看| 国产美女一区二区| 看电影不卡的网站| 蜜臀精品久久久久久蜜臀| 天天操天天色综合| 亚洲高清不卡在线观看| 亚洲精品五月天| 中文字幕日韩一区二区| 国产精品久久一级| 国产精品视频yy9299一区| 国产三级一区二区三区| 国产日韩v精品一区二区| 国产欧美一区二区三区在线看蜜臀| 精品国内片67194| 精品国产网站在线观看| 精品日韩欧美一区二区| 久久女同性恋中文字幕| 中文字幕乱码亚洲精品一区| 自拍偷拍国产亚洲| 亚洲专区一二三| 日韩精品午夜视频| 韩国理伦片一区二区三区在线播放| 日韩高清欧美激情| 久久精品国产久精国产爱| 奇米777欧美一区二区| 麻豆精品新av中文字幕| 国产精品正在播放| 不卡电影免费在线播放一区| 91麻豆免费观看| 欧美日韩在线观看一区二区| 精品欧美乱码久久久久久1区2区 | 精油按摩中文字幕久久| 国产一区二区不卡| 91丨porny丨蝌蚪视频| 在线成人免费观看| 国产欧美va欧美不卡在线 | 色呦呦日韩精品| 91国偷自产一区二区三区成为亚洲经典 | 国产精品传媒视频| 水蜜桃久久夜色精品一区的特点| 日韩高清电影一区| 99久久免费国产| 在线综合+亚洲+欧美中文字幕| 久久久久亚洲综合| 亚洲免费电影在线| 男女激情视频一区| 成人h精品动漫一区二区三区| 色就色 综合激情| 久久久久久综合| 亚洲超碰97人人做人人爱| 国内成+人亚洲+欧美+综合在线| 成人亚洲精品久久久久软件| 欧美日韩亚洲综合在线| 欧美国产乱子伦| 全部av―极品视觉盛宴亚洲| 91麻豆免费在线观看| 久久久综合网站| 日韩激情中文字幕| 色久优优欧美色久优优| 久久久久国产精品人| 日韩成人午夜精品| 色美美综合视频| 欧美精品一区二区三区很污很色的| 亚洲一区二区av电影| fc2成人免费人成在线观看播放| 91麻豆精品国产91久久久资源速度 | 国产成人亚洲综合a∨猫咪| 欧美精品日日鲁夜夜添| 亚洲欧洲www| 成人sese在线| 亚洲国产精品二十页| 国产在线精品不卡| 欧美一级日韩一级| 天使萌一区二区三区免费观看| 91小视频在线免费看| 国产人伦精品一区二区| 国产美女一区二区三区| 精品国产百合女同互慰| 老司机精品视频在线| 日韩一区二区在线看| 天天爽夜夜爽夜夜爽精品视频| 色欧美片视频在线观看| 亚洲色图都市小说| 91蜜桃在线免费视频| 国产精品美日韩| 丰满亚洲少妇av| 国产精品乱人伦| 99久久99久久免费精品蜜臀| 国产精品福利影院| 91婷婷韩国欧美一区二区| 亚洲精品成人悠悠色影视| 欧美午夜一区二区三区 | 欧美一卡二卡在线| 青青草国产成人99久久| 精品福利av导航| 国产一区在线不卡| 国产精品午夜免费| 日本黄色一区二区| 日韩影院精彩在线| 2欧美一区二区三区在线观看视频| 国产一区二区三区香蕉| 国产精品久久久久永久免费观看| 国产一区二区三区观看| 亚洲国产高清不卡| 在线欧美日韩国产| 亚洲成人动漫在线免费观看| 欧美日韩精品一区二区天天拍小说| 亚洲狠狠丁香婷婷综合久久久| 色中色一区二区| 亚洲国产精品一区二区www | 免费看日韩精品| 久久久一区二区三区捆绑**| 成人av网站在线| 一区二区三区色| 精品国产麻豆免费人成网站| 国产成人免费av在线| 亚洲一区二区中文在线| 精品国产凹凸成av人导航| 99国产欧美久久久精品| 日本美女视频一区二区| 国产欧美精品区一区二区三区 | 美女mm1313爽爽久久久蜜臀| 久久中文字幕电影| 色一情一伦一子一伦一区| 午夜视频在线观看一区二区三区| 久久亚洲影视婷婷| 欧美日韩一二区| 99久久99久久精品免费观看| 免费观看日韩电影| 亚洲欧美激情一区二区| 精品免费视频一区二区| 欧美亚洲精品一区| 成人午夜看片网址| 日韩电影免费在线观看网站| 亚洲欧美在线视频| 久久综合成人精品亚洲另类欧美| 欧美中文字幕一区| 国产一区 二区 三区一级| 一区二区三区色| 亚洲欧美在线aaa| 国产午夜精品一区二区三区嫩草 | 国产性做久久久久久| 日韩欧美专区在线| 欧美日韩三级视频| 91美女片黄在线观看91美女| 福利视频网站一区二区三区| 激情五月激情综合网| 日韩av网站在线观看| 亚洲成人手机在线| 亚洲另类色综合网站| 中文字幕中文在线不卡住| 色综合久久久久久久久久久| 久久国产夜色精品鲁鲁99| 亚洲妇女屁股眼交7| 一区二区三区日韩欧美精品| 中文字幕在线观看不卡视频| 中文字幕精品一区二区三区精品| 精品女同一区二区| 日韩视频在线永久播放|