Filter löschen
Filter löschen

how to cancel specific values in 3d array

2 Ansichten (letzte 30 Tage)
noa
noa am 18 Jun. 2013
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
array(array == Q) = 0;

Weitere Antworten (0)

Kategorien

Mehr zu Data Types finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by