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;

1 件のコメント

Iain
Iain 2013 年 6 月 18 日
You might want to use NaN's instead

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMatrices 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