I have a matrix
a = [ 1 'cancer'
2 'cancer'
3 'cancer'
4 'noncancer'
5 'noncancer' ]
I have another matrix with values
b = [ 4
5
2 ]
Now I have to compare the b matrix values with values of a and the output should be
output = [ 4 'noncancer'
5 'noncancer'
2 'cancer']
How can I do this in matlab ?
ais a cell array and not a matrix.