NDellipse

Returns coordinates of 2d ellipsoids
1.9K Downloads
Updated 28 Jan 2020

View License

NDellipse returns 2d coordinates of several ellipsoids defined by NDslices.

Usage [x , y] = ndellipse(M , S ,[H] , [R] , [N]);

Inputs
------

M : Mean vector (d x 1 x [n1] , ... , [nl])
S : Covariance (d x d x [n1] , ... , [nl])
H : Transfert Matrix (2 x d) (default H = eye(2 , d))
R : Such that y'Sy < R (default R = 2.44774683 = sqrt(chi2inv(0.95 , 2)))
N : Number of points to draw ellipsoids (default N = 50)


Outputs
-------

x : x-coordinate (1 x N x [n1] , ... , [nl])
y : y-coordinate (1 x N x [n1] , ... , [nl])

Cite As

Sebastien PARIS (2024). NDellipse (https://www.mathworks.com/matlabcentral/fileexchange/17536-ndellipse), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: EM_MVGM

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.4.0.0

Fixed for modern Matlab & OS64

1.3.0.0

-Fixed a bug recently introduded in the last update

1.2.0.0

-Minor update for Linux systems

1.1.0.0

Fixed empty parameters bug

1.0.0.0