Syntax:  [ ellipseX , ellipseY ] = ellipsate( dataX , dataY , stdev )
 
  Example:
    data=mvnrnd([0.5 1.5], [0.025 0.03 ; 0.03 0.16], 100);
    dataX=data(:,1);
    dataY=data(:,2);
    stdev = 2;           %# 2 standard deviations, 95% of population
    [ ellipseX , ellipseY ] = ellipsate( dataX , dataY , stdev );
    plot(dataX, dataY, '.')
    axis square
    hold on 
    plot(ellipseX , ellipseY, 'r')
 
  Function based on the code of Amro, described in 
  http://stackoverflow.com/questions/3417028/ellipse-around-the-data-in-matlab
Cite As
R P (2025). ELLIPSATE (https://uk.mathworks.com/matlabcentral/fileexchange/41245-ellipsate), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | 
