I was wondering if there was a way to combine a char array and a matrix
I have this character array
MwC = 9×1 char array 'w' 'b' 'y' 'b' 'w' 'r' 'y' 'r' 'b'
and this matrix
newcoords = 1 2 3 4 5 6 7 8 9
I have tried something like [newcoords, MwC] but that does not work and it outputs weird symbols
I need to be able to do something like
combined(1,2)= 'w'
I am ok with changing 'w' into a variable if that would work better
Best Answer