function plot2D(file) A = load(file); S = size(A); nCell = S(1)/3; X = reshape(A(:,1), 3, nCell); Y = reshape(A(:,2), 3, nCell); Z = reshape(A(:,3), 3, nCell); C = Z; fill3(X, Y, Z, C)