|
发表于 2004-4-18 18:41:08
|
显示全部楼层
请教,matlab如何设置小数位数?用什么函数来着
可以用心体会一下
The fourth option 'd' returns the decimal expansion of t up to the number of significant digits specified by digits: sym(t,'d')
ans =
.10000000000000000555111512312578
The default value of digits is 32 (hence, sym(t,'d') returns a number with 32 significant digits), but if you prefer a shorter representation, use the digits command as follows: digits(7)
sym(t,'d')
ans =
.1000000 |
|