Check out example codes for "matlab create cell array of strings". It will help you in understanding the concepts better.

Code Example 1

>> legends = {'first'}
legends = 
    'first'
>> legends(end+1) = {'second'}
legends = 
    'first'    'second'
>> legends(end+1) = {'third'}
legends = 
    'first'    'second'    'third'

Learn ReactJs, React Native from akashmittal.com