Simple question, array of strings
Show older comments
Hi, I need to creat a very simple list of 2 strings.
list1 = ['random_string1','random_string2'];
Then, I want to create a list of these values.
Array1 = [list1,list2,list3];
- I need to be able to access one of those string easily.
- every string will be a different lenght and cant be determined
- I cant use the function: var =string(one,two,three); because im using MatlabR2015
- anyone have an idea, i guess it cant be that hard but i dont have much experience with matlab.
Accepted Answer
More Answers (1)
Walter Roberson
on 2 Mar 2017
list1 = {'random_string1','random_string2'} ;
And to access individual strings you need to use {} instead of ()
Categories
Find more on Characters and Strings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!