亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
香蕉成人伊视频在线观看| 亚洲国产另类av| 久久女同性恋中文字幕| 日韩欧美一级精品久久| 91精品免费观看| 91精品国产综合久久久久久久| 欧美日韩一区国产| 欧美日韩成人高清| 91精品久久久久久蜜臀| 日韩免费高清av| 久久久久久久电影| 中文字幕巨乱亚洲| 亚洲男人的天堂网| 亚洲成人午夜电影| 麻豆精品一二三| 国产美女在线精品| av资源网一区| 欧美中文字幕久久| 日韩一区二区三区av| 26uuu欧美日本| 国产精品午夜在线观看| 亚洲色图色小说| 中文字幕欧美激情| 亚洲日本青草视频在线怡红院| 一区二区三区.www| 视频一区视频二区中文字幕| 老鸭窝一区二区久久精品| 国内精品在线播放| voyeur盗摄精品| 91九色最新地址| 日韩午夜激情电影| 欧美变态tickling挠脚心| 欧美三级中文字| 51精品久久久久久久蜜臀| 日韩一区二区在线观看| 精品国产亚洲在线| 久久久一区二区| 国产精品久久久久久久久久免费看| 国产精品久久久久久妇女6080| 中文字幕在线观看一区二区| 中文字幕亚洲欧美在线不卡| 一区二区三国产精华液| 图片区小说区国产精品视频| 蜜桃在线一区二区三区| 国产乱码精品一区二区三区av | 99精品热视频| 在线综合+亚洲+欧美中文字幕| 久久精品视频一区二区三区| 亚洲精品高清在线| 极品美女销魂一区二区三区免费| 91一区二区三区在线观看| 91精选在线观看| 亚洲欧美另类久久久精品| 麻豆视频观看网址久久| 91网站在线播放| 精品国产成人在线影院| 一区二区在线观看免费| 国产一区二区看久久| 欧美精品一卡两卡| 国产精品久久久久久久久免费桃花| 日韩激情在线观看| av亚洲产国偷v产偷v自拍| 欧美成人午夜电影| 亚洲女女做受ⅹxx高潮| 国产精品77777| 7777女厕盗摄久久久| 亚洲欧美成人一区二区三区| 国产精一品亚洲二区在线视频| 91麻豆精品国产91久久久使用方法 | 2024国产精品视频| 午夜精品福利一区二区三区蜜桃| jizzjizzjizz欧美| 久久久久国产免费免费| 日韩电影一区二区三区| 91国偷自产一区二区使用方法| 国产喷白浆一区二区三区| 午夜欧美在线一二页| 91在线免费看| 国产女人18毛片水真多成人如厕| 蜜桃av一区二区| 91精品欧美一区二区三区综合在| 亚洲伊人伊色伊影伊综合网| 成人黄色国产精品网站大全在线免费观看 | 波多野结衣一区二区三区| 精品欧美乱码久久久久久 | 色欧美88888久久久久久影院| 久久久精品天堂| 九九精品一区二区| 欧美日韩第一区日日骚| 性感美女久久精品| 在线观看视频91| 伊人色综合久久天天| 99re热视频这里只精品| 亚洲国产成人私人影院tom | 欧美成人a∨高清免费观看| 日韩精品亚洲一区| 欧美日韩国产美| 亚洲综合色视频| 色噜噜狠狠色综合欧洲selulu| 中文字幕在线不卡| 95精品视频在线| 337p亚洲精品色噜噜| 香蕉影视欧美成人| 3d成人动漫网站| 久久精品国产免费看久久精品| 日韩欧美综合在线| 美女精品自拍一二三四| 欧美电视剧在线看免费| 久久www免费人成看片高清| 日韩一区二区三区视频在线| 毛片不卡一区二区| 久久久久久日产精品| 国产高清不卡一区二区| 亚洲国产高清不卡| 91丨九色丨尤物| 一区二区三区欧美日韩| 欧美日韩另类国产亚洲欧美一级| 日韩精品一二三| 精品国产精品网麻豆系列| 国产激情视频一区二区在线观看 | 欧美电视剧免费全集观看| 美女在线视频一区| wwwwww.欧美系列| 成人精品小蝌蚪| 亚洲高清视频的网址| 日韩一区二区三区四区五区六区| 国产综合久久久久久鬼色 | 成人国产一区二区三区精品| 1024国产精品| 欧美人与z0zoxxxx视频| 久久精品国产色蜜蜜麻豆| 中文字幕精品三区| 在线观看视频91| 韩国精品主播一区二区在线观看| 国产精品全国免费观看高清| 欧美日韩一区在线观看| 激情六月婷婷久久| 亚洲色欲色欲www| 欧美一区二区三区公司| 成人午夜又粗又硬又大| 亚洲制服欧美中文字幕中文字幕| 日韩午夜在线观看| 99久久婷婷国产综合精品电影| 亚洲午夜电影在线| 久久亚洲私人国产精品va媚药| av在线一区二区| 日本三级亚洲精品| 国产精品色噜噜| 欧美日韩成人激情| 成人18精品视频| 日韩国产欧美三级| 国产精品久久久久久久久久久免费看 | 99久久99久久精品免费看蜜桃| 视频一区二区不卡| 国产精品嫩草99a| 在线播放日韩导航| av在线不卡免费看| 免费精品视频在线| 日韩一区中文字幕| 精品国产免费人成在线观看| 色哟哟亚洲精品| 国产麻豆一精品一av一免费| 亚洲午夜激情av| 国产精品丝袜在线| 欧美刺激午夜性久久久久久久| 色综合久久久久综合99| 国产一区二区福利| 日韩黄色一级片| 中文字幕成人在线观看| 69堂国产成人免费视频| 成人app在线| 国产精品99久久久久久宅男| 日韩中文字幕不卡| 亚洲综合色噜噜狠狠| 国产精品九色蝌蚪自拍| 精品国产一二三| 91精品久久久久久久91蜜桃| 日本久久一区二区三区| 国产激情91久久精品导航| 三级成人在线视频| 亚洲精品成人少妇| 国产精品理伦片| 久久午夜色播影院免费高清| 欧美一区二区三区四区五区| 欧美三级午夜理伦三级中视频| 色综合天天天天做夜夜夜夜做| 国产成人aaa| 国产一区欧美二区| 久久成人免费电影| 六月丁香综合在线视频| 日韩精品亚洲专区| 亚洲777理论| 亚洲动漫第一页| 一区二区三区自拍| 亚洲欧美色综合| 亚洲精品久久嫩草网站秘色| 亚洲精品久久久久久国产精华液| 亚洲欧美日韩在线播放| 亚洲日本在线观看| 亚洲视频香蕉人妖|