image thumbnail

NDellipse

version 1.4.0.0 (3.86 KB) by Sebastien PARIS
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 (2021). 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!