Documentation

This is machine translation

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

plotregression

Plot linear regression

Syntax

plotregression(targets,outputs)
plotregression(targs1,outs1,'name1',targs2,outs2,'name2',...)

Description

plotregression(targets,outputs) plots the linear regression of targets relative to outputs.

plotregression(targs1,outs1,'name1',targs2,outs2,'name2',...) generates multiple plots.

Examples

Plot Linear Regression

[x,t] = simplefit_dataset;
net = feedforwardnet(10);
net = train(net,x,t);
y = net(x);
plotregression(t,y,'Regression')

Introduced in R2008a

Was this topic helpful?