Change text to 0 in a cell array

1 回表示 (過去 30 日間)
Simen Sande
Simen Sande 2020 年 9 月 24 日
編集済み: madhan ravi 2020 年 9 月 24 日
Hi!
I have a 1x4259 cell which contains for example: 150,152,131,156,Full,157,141,Full,143,149.. and so on.
I want to change the text Full to 0 in every cell. How can I do that?
Thanks!

回答 (1 件)

madhan ravi
madhan ravi 2020 年 9 月 24 日
編集済み: madhan ravi 2020 年 9 月 24 日
cell_array(cellfun(@ischar, cell_array)) = {0}

カテゴリ

Help Center および File ExchangeCell Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by