Azzera filtri
Azzera filtri

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

1 visualizzazione (ultimi 30 giorni)
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?

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Data Types in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by