%% Specify Options for FIS Generation
% Create a default option set for the grid partitioning generation method.

opt = genfisOptions('GridPartition');

%
% Modify the options using dot notation. For example, specify 3 membership functions for the first input and 4 membership functions for the second input.

opt.NumMembershipFunctions = [3 4];

%
% You can also specify options when creating the option set. For example, create an option set for FCM clustering using 4 clusters.

opt2 = genfisOptions('FCMClustering','NumClusters',4);

% Copyright 2012 The MathWorks, Inc.