KhachiyanAlgorithmM​ain

版本 1.0.0 (2.0 KB) 作者: ankit agrawal
Fit ellipsoid to 3d data points using Khachiyan Algorithm. This code will find a minimum volume of ellipsoid which contains set of all the 3
33.0 次下载
更新时间 2019/2/25

查看许可证

Example
data= rand(100,3);

output=KhachiyanAlgorithmMain(data);
plot3(data(:,1),data(:,2),data(:,3),'b.')
hold on hsurface=surf(output.x,output.y,output.z,'FaceColor','b','EdgeColor','none','FaceAlpha',0.1);
radii=output.radii;
center=output.center;

% plot principal axis
plot3(output.minor(:,1),output.minor(:,2),output.minor(:,3),'k','linewidth',0.2) plot3(output.major(:,1),output.major(:,2),output.major(:,3),'k','linewidth',5) plot3(output.medium(:,1),output.medium(:,2),output.medium(:,3),'k','linewidth',2)

major_axis_vector=output.major(1,:)-output.major(end,:); medium_axis_vector=output.medium(1,:)-output.medium(end,:); minor_axis_vector=output.minor(1,:)-output.minor(end,:);

引用格式

ankit agrawal (2024). KhachiyanAlgorithmMain (https://www.mathworks.com/matlabcentral/fileexchange/70381-khachiyanalgorithmmain), MATLAB Central File Exchange. 检索来源 .

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

Community Treasure Hunt

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

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