%% Obtain Membership Function Plot Data
% Create a fuzzy inference system.

fis = readfis('tipper');

% Obtain the x-axis and y-axis data for the membership functions of the second input variable.

[xOut,yOut] = plotmf(fis,'input',2);

%
% You can then, for example, plot a single membership function using this data.

plot(xOut(:,2),yOut(:,2))
xlabel('food')
ylabel('delicious membership')