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