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

 Akzeptierte Antwort

Iain
Iain am 18 Jun. 2013

0 Stimmen

array(array == Q) = 0;

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Hilfe-Center und File Exchange

Gefragt:

noa
am 18 Jun. 2013

Community Treasure Hunt

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

Start Hunting!

Translated by