%% Display Tree of Fuzzy Inference Systems
% Create a fistree object from a pair of fuzzy inference systems.

fis1 = mamfis('Name','fis1','NumInputs',2,'NumOutputs',1);
fis2 = sugfis('Name','fis2','NumInputs',2,'NumOutputs',1);
con1 = ["fis1/output1" "fis2/input1"];
con2 = ["fis1/input1" "fis1/input2"];
tree = fistree([fis1 fis2],[con1; con2]);

% Display the tree of fuzzy inference systems.

plotfis(tree)

% For a fistree object, this function shows a description of the system in the Command Window instead of a figure.
% Copyright 2018 The MathWorks, Inc.