how to cancel specific values in 3d array

1 次查看(过去 30 天)
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;

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Performance and Memory 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by