%% Specify Options for Generating Output Surface
% Create a default gensurfOptions option set.

opt = gensurfOptions;

%
% Specify options using dot notation. For example, for a two-input, three-output fuzzy system, specify options to:
% Plot the surface for the second output against the values of the first and third inputs.
% Specify a reference value of 0.25 for the second input variable.

opt.OutputIndex = 2;
opt.InputIndex = [1 3];
opt.ReferenceInputs = [NaN 0.25 NaN];

% Any values you do not specify remain at their default values.
%
% You can also specify one or more options when creating the option set. For example, create an option set, specifying 25 grid points for both plotted input variables:

opt2 = gensurfOptions('NumGridPoints',25);

% Copyright 2012 The MathWorks, Inc.