Walter is right, with no additional details, type cell is the preferred class for building arrays of varying length strings:
list1 = {'random_string1','random_string2'}
list1 =
'random_string1' 'random_string2'
to access one of the strings in list
to access one character in one string of list1
to generate the array of lists, one way could be
Array=[list1;list2;list3]
Array =
'random_string1' 'random_string2'
'random_string1' 'random_string2'
'random_string1' 'random_string2'
to access one of the strings in array, one can either use linear indices
Array{1}
=
random_string1
Array{end}
=
random_string2
or sub-indices
Array{2,2}
=
random_string2
to access a list in string, use :
Array{1,:}
=
random_string1
=
random_string2
and to access a single character in Array
if you find this answer useful would you please be so kind to mark my answer as Accepted Answer?
To any other reader, please if you find this answer of any help solving your question,
please click on the thumbs-up vote link,
thanks in advance
John BG
Best Answer