%% RefPlotwb
% This example shows
%% code1

[x,t] = simplefit_dataset;
net = cascadeforwardnet([15 5]);
net = configure(net,x,t);
plotwb(net)

%
%% code2

plotwb(net,'root',3)

%
%% code3

plotwb(net,'root',4)

%
%% code4

plotwb(net,'toLayers',2)

%
%% code5

plotwb(net,'fromLayers',1)

%
%% code6

plotwb(net,'toLayers',2,'fromInputs',1)

% Copyright 2015 The MathWorks, Inc.