www.gusucode.com > nnet 案例源码 matlab代码程序 > nnet/PatternnetExample.m
%% 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);