Compare two matrices/meshgrid/surface/ model digital - distance between models - point data - 3D mesh
이전 댓글 표시

<<

>>
I have 3 vectors fo each surface (meshgrid). I want to compare the distance between this to surfaces. The problem is that to surfaces are not in the same position and the cells of the meshgrid are not on the same size. What i can do to obtain the correct distance between of this tow models?
surf(X,Y,Z); hold on; grid on; hold on, scatter3(NF_P(:,1),NF_P(:,2),NF_P(:,3),'filled'); surfl(X2A,Y2A,Z2A); hold on; scatter3(DD_B2(:,1),DD_B2(:,2),DD_B2(:,3)*(-1),'filled')
i want the difrence between Z and Z2A, but X and Y are difrent from X2A and Y2A.
i make Z3=Z-Z2A, bu is not correct that giv me difrences of 4 meters , that is not true, soo i dont know how to make this analyse
채택된 답변
추가 답변 (1개)
Octavian Macari
2018년 5월 27일
0 개 추천
댓글 수: 1
Nicola Bombace
2018년 5월 29일
If you were to use the code above (the second comment), you could just do:
distMeasure = sqrt(norm(diff));
This will give you a single number that measures the distance of the two surfaces.
카테고리
도움말 센터 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
