%% RefRegression
% This example shows
%% code

[x,t] = simplefit_dataset;
net = feedforwardnet(20);
net = train(net,x,t);
y = net(x);
[r,m,b] = regression(t,y)
plotregression(t,y)

% Copyright 2015 The MathWorks, Inc.