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

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -