%% Specify Cluster Center Range of Influence For Each Data Dimension
% Obtain input and output training data.

Xin = [7*rand(50,1) 20*rand(50,1)-10];
Xout = 5*rand(50,1);

%
% Create a genfisOptions option set and specify the range of influence for each data dimension. Suppose that the input data has two columns, and the output data has one column. Specify 0.5 and 0.25 as the range of influence for the first and second input data columns. Specify 0.3 as the range of influence for the output data.

opt = genfisOptions('SubtractiveClustering',...
                    'ClusterInfluenceRange',[0.5 0.25 0.3]);

%
% Generate the FIS.

fismat = genfis(Xin,Xout,opt);

% Copyright 2012 The MathWorks, Inc.