fisdemo.m

来自「a collection of M-files to study concept」· M 代码 · 共 67 行

M
67
字号
function fig = fdemo()
% This is the machine-generated representation of a Handle Graphics object
% and its children.  Note that handle values may change when these objects
% are re-created. This may cause problems with any callbacks written to
% depend on the value of the handle at the time the object was saved.
%
% To reopen this object, just type the name of the M-file at the MATLAB
% prompt. The M-file and its associated MAT-file must be on your path.

%#call mfplot

h0 = figure('Units','normalized', ...
	'Color',[0.8 0.8 0.8], ...
	'MenuBar','none', ...
	'Name','FISMAT demo', ...
	'Position',[0.3 0.1 0.4 0.8], ...
	'Tag','Fig1');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'Callback','intrdemo', ...
	'ListboxTop',0, ...
	'Position',[0.1 0.8 0.8 0.07], ...
	'String','Introduction', ...
	'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'Callback','mf_panel', ...
	'ListboxTop',0, ...
	'Position',[0.1 0.7 0.8 0.07], ...
	'String','Membership Function', ...
	'Tag','Pushbutton2');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'Callback','impldemo', ...
	'ListboxTop',0, ...
	'Position',[0.1 0.6 0.8 0.07], ...
	'String','Fuzzy Implication Relation', ...
	'Tag','Pushbutton3');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'Callback','reasdemo', ...
	'ListboxTop',0, ...
	'Position',[0.1 0.5 0.8 0.07], ...
	'String','Approximate Reasoning', ...
	'Tag','Pushbutton4');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'Callback','ctrdemo', ...
	'ListboxTop',0, ...
	'Position',[0.1 0.4 0.8 0.07], ...
	'String','Fuzzy Controller', ...
	'Tag','Pushbutton5');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'Callback','da_panel', ...
	'ListboxTop',0, ...
	'Position',[0.1 0.3 0.8 0.07], ...
	'String','Dancing Membership Function', ...
	'Tag','Pushbutton6');
h1 = uicontrol('Parent',h0, ...
	'Units','normalized', ...
	'Callback','intonfis', ...
	'ListboxTop',0, ...
	'Position',[0.1 0.2 0.8 0.07], ...
	'String','About FISMAT', ...
	'Tag','Pushbutton7');

⌨️ 快捷键说明

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