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

 Accepted Answer

array(array == Q) = 0;

More Answers (0)

Categories

Asked:

noa
on 18 Jun 2013

Community Treasure Hunt

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

Start Hunting!