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 CenterFile Exchange 中查找有关 Data Types 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by