Logical Indexing of Meshgrid

조회 수: 3 (최근 30일)
Vaishnavi Sree Jeganathan
Vaishnavi Sree Jeganathan 2022년 11월 27일
댓글: Vaishnavi Sree Jeganathan 2022년 12월 3일
Hi,
I have a 3D meshgrid. Is it possible to store logical 0/1 (flag = 0/1 ) in every grid point and plot all the grid points that has flag =0 ?
Please help me.

답변 (1개)

Matt J
Matt J 2022년 11월 27일
편집: Matt J 2022년 11월 27일
Logical arrays can be 3D just like any other Matlab array (except tables and 2D sparse matrices). You can use volshow to get a 3D rendering, though you may be asked to set your opengl settings to hardware-based in order for it to work.
  댓글 수: 2
Walter Roberson
Walter Roberson 2022년 11월 27일
Vaishnavi Sree Jeganathan
Vaishnavi Sree Jeganathan 2022년 12월 3일
Thank you so much. That was helpful

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

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by