how to cancel specific values in 3d array

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일

0 개 추천

array(array == Q) = 0;

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

태그

질문:

noa
2013년 6월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by