tingxuem 发表于 2011-7-26 22:43

matlab的一些输出格式

format:设置输出格式
对浮点性变量,缺省为format short.
format并不影响matlab如何计算和存储变量的值。对浮点型变量的计算,即单精度或双精度,按合适的浮点精度进行,而不论变量是如何显示的。对整型变量采用整型数据。整型变量总是根据不同的类(class)以合适的数据位显示,例如,3位数字显示显示int8范围 -128:127。format short, long不影响整型变量的显示。
format long 显示15位双精度,7为单精度(scaled fixed point)
format short 显示5位(scaled fixed point format with 5 digits)
format short eng   至少5位加3位指数
format long eng  16位加至少3位指数
format hex   十六进制
format bank  2个十进制位
format +     正、负或零
format rat   有理数近似
format short 缺省显示
format long g  对双精度,显示15位定点或浮点格式,对单精度,显示7位定点或浮点格式。
format short g  5位定点或浮点格式
format short e  5位浮点格式
format long e  双精度为15位浮点格式,单精度为7为浮点格式

李金鹏 发表于 2011-7-27 09:14

{:3_48:}谢谢

师长 发表于 2011-7-27 17:58

{:3_41:}太吃惊啦

luoye_ 发表于 2011-7-27 19:18

好好!!!!!!!!

luoye_ 发表于 2011-7-27 19:18

{:soso_e100:}/////

luoye_ 发表于 2011-7-27 19:19

顶一下!!!!!!!!!

ljyxn 发表于 2011-8-1 19:36

好东西,顶一个!!谢谢

双茶香 发表于 2011-11-29 14:38

哈哈   学习了  不是视频  谢谢分享

851354452 发表于 2011-11-29 22:20

谢谢谢谢谢谢

851354452 发表于 2011-11-29 22:21

谢谢谢谢谢谢
页: [1] 2
查看完整版本: matlab的一些输出格式