matrix - String split in matlab -


i have cell value word = '00000'. want take 4th , 5th value. tried kata=word(4:5),

i tried kata=word{4} still cannot.

i got error message :

index exceeds matrix dimensions. 

how split it? it's in <cell> type.

first need index content of "first" (and only) cell element curly brackets {} , can index vector (). therefore need:

word = {'12345'} output = word{1}(4:5) 

which gives:

output =  45 

Comments

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -