how to find the length of characters stored in cell array?when each column contains words of different length?

1 Ansicht (letzte 30 Tage)
i have a cell array of 1*4 and it contains words 'issue, information, books,subject how can i find the no of characters in all these words?

Akzeptierte Antwort

Iman Ansari
Iman Ansari am 5 Mai 2013
Hi.
a={'issue', 'information', 'books','subject'}
L=cellfun(@length,a)

Weitere Antworten (0)

Kategorien

Mehr zu Data Types 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!

Translated by