No BSD License  

5.0

5.0 | 1 rating Rate this file 9 Downloads (last 30 days) File Size: 2.42 KB File ID: #273

rope.m

by

 

ROPE Generate coordinates of an ellipse enclosing data.

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 5.2 (R10)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
17 Sep 2008 Lorenzo Guerrasio

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

Contact us