MATLAB: Convert double to string!

doublestring

I want convert double number like 0.222833 to string but when i using num2str the number convert to '0.22283' and sixth digit of number is removed ,can u help me to convert it to string?

Best Answer

a=0.222833
a=sprintf('%.6f',a)