To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
hi, I don't want deal with such numbers 1.0e+009 *1.8000 are there any fun. instead of sprintf convert that no. to natural form. if I have numbers , sprintf convert all into one long string.
No products are associated with this question.
type in Command Window:
and the output will be of about 5 decimal digits. However, if you have such a large number as in your question, the MatLab will by default output it in exponential form (I think). Also, you dont have to use sprintf. Try this:
x=5; disp(['This is my variable ',num2str(x)]);