liruitz 发表于 2008-11-12 21:50

关于matlab中变量系数问题

在计算后 得到的系数为分数模式 然后使用 vpa(f) 方式 但是得到的 变量系数的小数点后有10几位 请问如何控制系数的小数点后的位数
:victory: 谢谢大家 急

E =

.70312500000000000000000000000000e-57*(6000000000000000000000000000000.*t*u11-6000000000000000000000000000000.*t^2*u22+6000000000000000000000000000000.*t^3*u11+12000000000000000000000000000000.*t^2*u21+6000000000000000000000000000000.*t^3*u22+2000000000000000000000000000000.*t^3*u13-12000000000000000000000000000000.*t^2*u11+(6000000000000000000000000000000.*t^3*g22-12000000000000000000000000000000.*t^2*g11-6000000000000000000000000000000.*t^3*g21-6000000000000000000000000000000.*t^3*g12+12000000000000000000000000000000.*t^2*g21+6000000000000000000000000000000.*t^3*g11+6000000000000000000000000000000.*t*g11+6000000000000000000000000000000.*t^2*g12-6000000000000000000000000000000.*t^2*g22-6000000000000000000000000000000.*t*g21)*z^2+6000000000000000000000000000000.*t^2*u12+(.15000000000000000000000000000000e33*t^2*u12+.15000000000000000000000000000000e33*t^3*u11-.30000000000000000000000000000000e33*t^2*u11-.15000000000000000000000000000000e33*t*u21+.30000000000000000000000000000000e33*t^2*u21-50000000000000000000000000000000.*t^3*u23+.15000000000000000000000000000000e33*t^3*u22+50000000000000000000000000000000.*t^3*u13-.15000000000000000000000000000000e33*t^3*u21-.15000000000000000000000000000000e33*t^3*u12-.15000000000000000000000000000000e33*t^2*u22+.15000000000000000000000000000000e33*t*u11)*z-6000000000000000000000000000000.*t^3*u21

ch_j1985 发表于 2008-11-12 22:04

回复 楼主 liruitz 的帖子

doc vpa
doc format

bainhome 发表于 2008-11-12 22:57

digits(4)
vpa()

xiaolv 发表于 2010-12-14 10:09

谢谢你的回答!
页: [1]
查看完整版本: 关于matlab中变量系数问题