I have a vector, (1,2,3,4) and I want to label 1 with \'AA\', 2 with \'AB\', 3 with \'CD\', 4 with \'Hello\', wh
(1,2,3,4)
\'AA\'
\'AB\'
\'CD\'
\'Hello\'
easy peasy, use a cell array, for example:
v = {'AA','AB','CD','Hello'};
then try,
v{1}
etc. (note the curly brackets...{})
EDIT: this is parallel to :
v{1}='AA'; v{2}='AB'; ... ...