2021年4月24日星期六

MATLAB - literally convert decimal to string

I hope I have a simple question, I just couldn't figure it out.

I have several numbers which I want to be converted to string quite literally:

12.000 -> '12.000'  4.0 -> '4.0'  34.760000 -> '34.760000'  

As you can see, I cannot simply pad zeros, since that highly depends on how many zero are given with the number.

Does anyone know how to do this?

https://stackoverflow.com/questions/67238695/matlab-literally-convert-decimal-to-string April 24, 2021 at 10:02AM

没有评论:

发表评论