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 版本兼容性
平台兼容性
Windows macOS Linux类别
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0 |