Borrar filtros
Borrar filtros

Plot smooth surface from scatter points

7 visualizaciones (últimos 30 días)
JZ
JZ el 2 de Abr. de 2019
Comentada: JZ el 2 de Abr. de 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
  1 comentario
JZ
JZ el 2 de Abr. de 2019
Attached input w/ new extension name (txt).

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Scatter Plots en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by