Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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 targets.

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

Plot Output and Target Values

This example shows how to use a feed-forward network to solve a simple fitting problem.

[x,t] = simplefit_dataset;
net = feedforwardnet(10);
net = train(net,x,t);
plotfit(net,x,t)

Introduced in R2008a

Was this topic helpful?