Contents

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')

Was this topic helpful?