%% Display All Rules for a Fuzzy Inference System
% Load fuzzy inference system.

fis = readfis('tipper');

%
% Display rules using linguistic expressions.

showrule(fis)

%
% Display rules using symbolic expressions.

showrule(fis,'Format','symbolic')

%
% Display rules using membership function indices.

showrule(fis,'Format','indexed')

% Copyright 2012 The MathWorks, Inc.