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
I assume you have the map in a form of a cell array
>> map{3} = 'Jog'; >> map{4} = 'Walk'; >> map{7} = 'Run';
Now use the map
map( compute )
will give you a cell array of strings