%% Specify Reference Inputs for Surface Plot
% Load a fuzzy inference system with four inputs and one output.

fis = readfis('slbb.fis');

%
% Create a default gensurfOptions option set.

opt = gensurfOptions;

%
% Specify plotting options to:
% Plot the output against the second and third input variable.
% Use 20 grid points for both inputs.
% Fix the first and fourth inputs at -0.5 and 0.1 respectively. Set the reference values for the second and third inputs to NaN.

opt.InputIndex = [2 3];
opt.NumGridPoints = 20;
opt.ReferenceInputs = [-0.5 NaN NaN 0.1];

%
% Plot the output surface.

gensurf(fis,opt)

% Copyright 2012 The MathWorks, Inc.