How to create a volume data from a matrix x,y,z,v?

6 views (last 30 days)
If we have a matrix M and N like "data.mat" attached, where x,y and z correspond to coordinates and elevation scatter points, and the fourth column v to a scalar value for each point; how could I create a volumen data from those points in order to interpolate the values and take contour slices from there or create filled volumes?
scatter3(M(:,1),M(:,2),M(:,3)+14,30,M(:,4),'filled')
hold on
scatter3(N(:,1),N(:,2),N(:,3)-8,30,N(:,4),'filled')
hold on
cb = colorbar;
box on
grid on
axis([4.2410e+05 4.2420e+05 6.6279e+05 6.6293e+05 1170 1240])
xlabel('x')
ylabel('y')
zlabel('z')

Answers (0)

Community Treasure Hunt

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

Start Hunting!