I have a 10,000 x 65 Cell with 0's and 1's so for example if I type
C(1,1)I get [0] returned or likewise C(3,4) a [1] is returned
I need a way to turn every 0 into a blank cell and every 1 into a char t
I've tried the following with little success
[rows, cols] = size(M); for i = 1:rows for j = 1:cols if strcmp(M(i,j), 1) M(i,j) = 't'; end end end
It returns the same thing, I'm guessing its not recognising the 1's as strings. Any idea sort of simply doing the conversion straight in Excel. thanks
if M(i,j)==1?