Displays a confidence ellipse for points or groups of points in a two-dimensional plot.
Draws an ellipse around a group of points on a two-dimensional plot. A 2-component PCA model is calculated to get the orientation and size of the ellipse and this is plotted on the current figure.
First input is either fig the figure number on which ellipses should be drawn for all line objects on the currently selected axes, or scrs the two-column matrix of values of the points. An optional input is the confidence limit cl which defaults to 95 (= 95%).