例子数据=randint(100,3);
输出=KhachiyanAlgorithmMain(数据); plot3(data(:,1),data(:,2),data(:,3),'b.') 保持 hsurface=surf(output.x,output.y,output.z,'FaceColor','b','EdgeColor','none','FaceAlpha',0.1); 半径=输出。半径; 中心=输出。中心;
% 绘制主轴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
2021-11-28 14:54:54
2KB
matlab
1