%% Generate FIS Output Surface for Second Output
% Load a fuzzy inference system with two inputs and two outputs.

fis = readfis('mam22.fis');

%
% Create a surface generation option set, specifying the second output as the output to plot. By default, this output is plotted against the first two input variables.

opt = gensurfOptions('OutputIndex',2);

%
% Plot the surface, using the specified option set.

gensurf(fis,opt)

% Copyright 2012 The MathWorks, Inc.