Simple question, array of strings
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (1)
Walter Roberson
le 2 Mar 2017
list1 = {'random_string1','random_string2'} ;
And to access individual strings you need to use {} instead of ()
Catégories
En savoir plus sur Characters and Strings dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!