FUNCTION REFERENCE
plotregression
Plot targets and outputs, a least-squares fit and the identity line.
Plot targets and outputs, a least-squares fit and the identity line.
Syntax
h = plotregression(targets,outputs)Syntax
h = plotregression(t1,y1,name1,t2,y2,name2,...)Creates a new figure; titles show correlation R and the output label shows slope and intercept. Named datasets occupy separate subplots.
Example
h = plotregression([1 2 3 4],[2 3 5 4],'Training');Differences from MATLAB: finite matrices of equal size, at least two observations and nonconstant targets are required; at most 16 datasets.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.