Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

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

Asked by shafaq innam

shafaq innam (view profile)

on 5 May 2013

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?

0 Comments

shafaq innam

shafaq innam (view profile)

Products

No products are associated with this question.

1 Answer

Answer by Iman Ansari

Iman Ansari (view profile)

on 5 May 2013
Accepted answer

Hi.

a={'issue', 'information', 'books','subject'}
L=cellfun(@length,a)

0 Comments

Iman Ansari

Iman Ansari (view profile)

Contact us