作者candy88257 (阿泰斯)
看板MATLAB
标题[讨论] num2str自动舍位问题...
时间Thu Feb 20 21:19:46 2014
num2str(4.42850688954145)
ans:
['4.4285';]
後面小数点会完全不见
请问如何如何不舍位地使用num2str?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 175.180.168.246
1F:推 sunev:T = num2str(X,N) converts the matrix X into a string 02/20 21:31
2F:→ sunev:representation with a maximum N digits of precision. 02/20 21:31
3F:→ candy88257:感谢!!!原来num2str还能这样用!!! 02/20 23:21
4F:推 sunev:打help num2str就看得到了 02/20 23:50