単純に、それぞれのデータ点をnの値に応じた色で表示するには、以下のようにすれば可能です。データ点が十分にあるようであれば、scatteredInterpolant関数で内挿して、等値面などの形で表示するという方法もあります。
figure
scatter3(x,y,z,[],n,'filled')
xlabel('X','FontSize',12)
ylabel('Y','FontSize',12)
zlabel('Z','FontSize',12)
colorbar

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