I would like to map numeric output from a matrix to a string.
Given
compute=[ 7, 4, 3; 3, 4, 7]
how can one obtain a string mappin
You can use cell array
strs = {'one','two','Jog','Walk','five','six','Run'};
compute=[ 7, 4, 3; 3, 4, 7];
out = strs(compute);
out =
'Run' 'Walk' 'Jog' 'Jog' 'Walk' 'Run'