Change text to 0 in a cell array
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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!
0 comentarios
Respuestas (1)
madhan ravi
el 24 de Sept. de 2020
Editada: madhan ravi
el 24 de Sept. de 2020
cell_array(cellfun(@ischar, cell_array)) = {0}
0 comentarios
Ver también
Categorías
Más información sobre Cell Arrays en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!