%% Save Fuzzy Inference System to File
% Create a fuzzy inference system, and add an input variable with membership functions.

fis = mamfis('Name','tipper');
fis = addInput(fis,[0 10],'Name','service');
fis = addMF(fis,'service','gaussmf',[1.5 0],'Name','poor');
fis = addMF(fis,'service','gaussmf',[1.5 5],'Name','good');
fis = addMF(fis,'service','gaussmf',[1.5 10],'Name','excellent');

%
% Save the fuzzy system in the current working folder in the file myFile.fis.

writeFIS(fis,'myFile');

% Copyright 2017 The MathWorks, Inc.