I got an array with values which are either 1 or 2 like:
val = [1,2,2,1,...]
Now I want to generate a new array in which every value of val is replaced with a String like:
str = {'accept', 'not accept','not accept', 'accept',...}
Can someone help me to get it done with Matlab?
Thanks in advance!