Change text to 0 in a cell array
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (1개)
madhan ravi
2020년 9월 24일
편집: madhan ravi
2020년 9월 24일
cell_array(cellfun(@ischar, cell_array)) = {0}
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Cell Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!