Cell rows/columns size
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Memo Remo
am 20 Mai 2020
Kommentiert: Memo Remo
am 20 Mai 2020
Hi,
I have a m by n cell in which some rows has less than 10 strings and the remaining elements are empty ([ ]). I now want to determine how many strings are there in each rows. If this cell was an array I could use "nonzeros(A(i,:))" to determine this but I don't know how to do this for a cell. Please help me fix this problem.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/295398/image.jpeg)
Thanks.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Structures finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!