ELLIPSATE

版本 1.0.0.0 (1.6 KB) 作者: R P
circumscribe data into an ellipse
648.0 次下载
更新时间 2013/4/11

查看许可证

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

引用格式

R P (2024). ELLIPSATE (https://www.mathworks.com/matlabcentral/fileexchange/41245-ellipsate), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R13
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Expression Analysis 的更多信息
标签 添加标签

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0