File Exchange

image thumbnail

rope.m

version 1.0 (2.42 KB) by

ROPE Generate coordinates of an ellipse enclosing data.

1 Download

Updated

No License

ROPE Generate coordinates of an ellipse enclosing data.

[LX,LY]=ROPE(X,Y,LEVEL) returns coordinates [LX,LY] of an ellipse enclosing LEVEL % of the coordinate pairs in column vectors X and Y.

The major axis of the ellipse is the straight line regression of Y on X. The centre of the ellipse is the mean of X and Y and the ratio of the major to minor axes is the ratio of the standard deviations of the data points' distances from the centre, projected onto the major and minor axes.

Comments and Ratings (1)

Lorenzo Guerrasio

Very simple and nice. I just used an orhtognal regression instead of the normal least square regression.thanks!

MATLAB Release
MATLAB 5.2 (R10)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video