How to meshgrid set of points in 3d

조회 수: 16 (최근 30일)
Javier
Javier 2020년 8월 28일
답변: Javier 2020년 8월 28일
Hello there, how would wou grid 8 points?
p1 = [3 1 1]
p2 = [3 -1 1]
p3 = [3 -1 -1]
p4 = [3 1 -1]
q1 = [2 2 2]
q2 = [2 -2 2]
q3 = [2 -2 -2]
q4 = [2 2 -2]
Those points are not the ones I am using, but just an example.
The points I am trying to grid are over a spheric surface, would it work?
  댓글 수: 6
Rik
Rik 2020년 8월 28일
What about plot3?
Javier
Javier 2020년 8월 28일
Will it connect the dots?

댓글을 달려면 로그인하십시오.

채택된 답변

Javier
Javier 2020년 8월 28일
I think I just solved it, I first saved the dots in a matrix and then separated it in three vectors, for x y and z. And then I used trimesh, instead of meshgrid.
I will leave the question open in case anyone else has a diferent answer.
Thank you so much.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by