%% Generate Fuzzy Inference System Using Default Options
% Define training data.

inputData = [rand(10,1) 10*rand(10,1)-5];
outputData = rand(10,1);

%
% Generate a fuzzy inference system.

fis = genfis(inputData,outputData);

% The generated system, fis, is created using grid partitioning with default options.
% Copyright 2012 The MathWorks, Inc.