フィルターのクリア

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

1 回表示 (過去 30 日間)
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?

採用された回答

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by