Matlab数据格式
Posted by admin on 2011-08-22
0 comments
数据格式 解释 例 a= 1/3
Short 短格式 0.3333
Long 长格式 0.33333333333333
Hex 十六进制 3fd5555555555555
Bank 金融格式 0.33
Short E 短指数方式 3.3333E-001
Long E 长指数格式 3.33333333333333e-001
Short G 短紧缩格式 0.3333
Long G 长紧缩格式 0.333333333333333
Rational(rat) 有理格式 1/3
Loose 稀疏格式 0.3333
Compact 紧凑格式命令和显示的结果之间不加空行
更改格式使用:format命令
format short
format long
例如:pi