Azzera filtri
Azzera filtri

Plot smooth surface from scatter points

7 visualizzazioni (ultimi 30 giorni)
JZ
JZ il 2 Apr 2019
Commentato: JZ il 2 Apr 2019
I am trying to plot smooth surface from scattered points as attached file. However, the surface I got is not smoothed at the edge. And I even can't use single color for it. Please help me and thanks in advance.
ifc1 = load('iface1.dx');
ifc1x = ifc1(:,3);
ifc1y = ifc1(:,1);
ifc1z = ifc1(:,2);
[ifc1xq,ifc1yq] = meshgrid(min(ifc1x):10:max(ifc1x),min(ifc1y):10:max(ifc1y));
ifc1zq = griddata(ifc1x,ifc1y,ifc1z,ifc1xq,ifc1yq);
mesh(ifc1xq, ifc1yq,ifc1zq);
hold on;
figure(1)
s = surf(ifc1xq, ifc1yq,ifc1zq,'EdgeColor','g','LineStyle','none'); hold on
set(s, 'FaceColor',[.1 .9 .1],'FaceAlpha',0.6);
hidden off

Risposte (0)

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by