Contents

plotfit

Plot function fit

Syntax

plotfit(NET,INPUTS,TARGETS)
plotfit(targets1,inputs1,'name1',...)

Description

plotfit(NET,INPUTS,TARGETS) plots the output function of a network across the range of the inputs INPUTS and also plots target TARGETS and output data points associated with values in INPUTS. Error bars show the difference between outputs and INPUTS.

The plot appears only for networks with one input.

Only the first output/targets appear if the network has more than one output.

plotfit(targets1,inputs1,'name1',...) displays a series of plots.

Examples

load simplefit_dataset
net = fitnet(20);
[net,tr] = train(net,simplefitInputs,simplefitTargets);
plotfit(net,simplefitInputs,simplefitTargets);
Was this topic helpful?