Help CenterHelp Center
Plot linear regression
plotregression(targets,outputs)
plotregression(targs1,outs1,'name1',targs2,outs2,'name2',...)
example
plotregression(targets,outputs) plots the linear regression of targets relative to outputs.
targets
outputs
plotregression(targs1,outs1,'name1',targs2,outs2,'name2',...)generates multiple plots.
collapse all
This example shows how to plot the linear regression of a feedforward net.
[x,t] = simplefit_dataset; net = feedforwardnet(10); net = train(net,x,t);
y = net(x); plotregression(t,y,'Regression')
Network targets, specified as a matrix or cell array.
Network outputs, specified as a matrix or cell array.
Introduced in R2008a
plottrainstate
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office