I have 3 vectors x, y, z and I would like to generate a 3D surface instead of having just separate points (e.g.: plot3 or scatter3). Note z is function of x and y, but I have calculated this before. I have tried to use scatteredInterpolant, meshgrid and mesh, however this creates z points in zones/areas that are supposed to be empty. How can I avoid this and just plot the surface within the z limits/boundaries?
Thanks in advance for the help!

댓글 수: 2

Jeevan Joishi
Jeevan Joishi 2016년 6월 8일
Hi PallaC,
Can you explain what went wrong with scatteredInterpolant, meshgrid, mesh with some snapshots or post sample values for x,y and z.
PallaC
PallaC 2016년 6월 10일
Hi Jeevan, here you can see the difference -on the mesh plot I have an additional surface part I don't want to generate (or how can I remove it?)

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

답변 (0개)

카테고리

제품

질문:

2016년 6월 1일

댓글:

2016년 6월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by