필터 지우기
필터 지우기

how to cancel specific values in 3d array

조회 수: 2 (최근 30일)
noa
noa 2013년 6월 18일
hi
i have a 3d array (aXbXc)
and i want that in each cell that has the value Q to put there a zero instead of it.
but the FIND function keeps returning empty cell values

채택된 답변

Iain
Iain 2013년 6월 18일
array(array == Q) = 0;
  댓글 수: 1
Iain
Iain 2013년 6월 18일
You might want to use NaN's instead

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by