Change text to 0 in a cell array

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!

Antworten (1)

madhan ravi
madhan ravi am 24 Sep. 2020
Bearbeitet: madhan ravi am 24 Sep. 2020

1 Stimme

cell_array(cellfun(@ischar, cell_array)) = {0}

Kategorien

Gefragt:

am 24 Sep. 2020

Bearbeitet:

am 24 Sep. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by