%% Train Neural Network Using traincgf Train Function
% This example shows how to train a neural network using the traincgf train function.
% Here a neural network is trained to predict body fat percentages.

[x, t] = bodyfat_dataset;
net = feedforwardnet(10, 'traincgf');
net = train(net, x, t);
y = net(x);

% Copyright 2012 The MathWorks, Inc.