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

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

% Copyright 2012 The MathWorks, Inc.