There is an Array with double type and I want to convert it into character but there is a problem and that is the number of each cell contains the number of character. for example I need to convert 49 to 1 in character. i write the code below but it doesn’t work at all.it just to show you what I mean. Value of a Array is:
a(1)=49a(2)=49a(3)=52a(4)=50%code
z(1)=num2str(a(1));z(2)=num2str(a(2));z(3)=int2str(a(3));numberplate = char(str2num(z(1)))+char(str2num(z(2)))+char(str2num(z(3))+ char(str2num(z(4))%end of code
And the value of numberplate should be numberplate==’1132’. thanks
Best Answer