You can download MyRobustCrust.m (author: Luigi Giaccari), for example, from github .
Then do
[t,tnorm]=MyRobustCrust(myOne(:, 1:3));
hold on;
title('Output Triangulation','fontsize',14);
axis equal;
trisurf(t,myOne(:,1),myOne(:,2),myOne(:,3),'facecolor','c','edgecolor','b');
gives you

Note:
The file used to exist in Matlab FileExchange, but no longer works. I don’t know why this is so, and I think that to be safe, it would be better to contact the author before using it.
source
share