Surf only region of interest?

조회 수: 19 (최근 30일)
Rafael Madrid
Rafael Madrid 2014년 9월 18일
댓글: zexi wang 2020년 8월 12일
Hi,
So I have this 3D array from structured light 3D scanning. The code prompts me to make a mask to then unwrap the phase inside that mask. But when I plot the array it will show the entire masked array instead of just my shape. How can I surf plot only the region I've marked? i.e, only the face. Thanks
EDIT: Maybe I phrased it wrong. Maybe I should say, how can I make the rest of the surface transparent, leaving only the face or whatever my object would be?
Raf

채택된 답변

Stephen23
Stephen23 2014년 9월 25일
편집: Stephen23 2014년 9월 25일
One possibility is to convert the data that you do not wish to plot to NaN s. In most of MATLAB's basic plotting functions (like surf ) any NaN s are ignored (i.e. not plotted):
  댓글 수: 2
Rafael Madrid
Rafael Madrid 2014년 9월 25일
That's exactly what I needed. Thank you.
zexi wang
zexi wang 2020년 8월 12일
Thanks very much for the help!

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by