Simple question, array of strings
Mostra commenti meno recenti
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.
Risposta accettata
Più risposte (1)
Walter Roberson
il 2 Mar 2017
list1 = {'random_string1','random_string2'} ;
And to access individual strings you need to use {} instead of ()
Categorie
Scopri di più su Characters and Strings in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!