MATLAB Answers

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

10 ビュー (過去 30 日間)
Philippe Corner
Philippe Corner 2019 年 3 月 18 日
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')

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by