%% patternnet
% This example shows how to design a pattern recognition network to
% classify iris flowers.
%% code
% This example shows how to design a pattern recognition network to
% classify iris flowers.

% Copyright 2015 The MathWorks, Inc.

[x,t] = iris_dataset;
net = patternnet(10);
net = train(net,x,t);
view(net)
y = net(x);
perf = perform(net,t,y);
classes = vec2ind(y);