I would like to make a list of strings in MATLAB using the following example:
x = ['fun', 'today', 'sunny']
I want to be able to call x(1)and return it 'fun', but instead I get it 'f'.
Also, is there a way to add a string to the list without getting a list returning the number where the string should be? I tried to use str2doubleseveral other things. It seems that both of these things should be possible in MATLAB.
source
share