Labfans是一个针对大学生、工程师和科研工作者的技术社区。 论坛首页 | 联系我们(Contact Us)
MATLAB爱好者论坛-LabFans.com
返回   MATLAB爱好者论坛-LabFans.com > 工程数学软件 > MATLAB论坛
MATLAB论坛 一切MATLAB相关问题在此讨论。
 
 
主题工具 显示模式
旧 2008-06-28, 22:24   #1
jasonzou
初级会员
 
注册日期: 2008-06-25
年龄: 42
帖子: 7
声望力: 0
jasonzou 正向着好的方向发展
默认 刚接触Matlab没多久,有点问题想打扰一下。

想问一下matlab的输出格式有哪些。

我的感觉好像它不能输出浮点格式吧,不知道我有没有搞错。

%c Single character
%d Decimal notation (signed)
%e Exponential notation (using a lowercase e as in 3.1415e+00)
%E Exponential notation (using an uppercase E as in 3.1415E+00)
%f Fixed-point notation
%g The more compact of %e or %f, as defined in [2]. Insignificant zeros do not print
%G Same as %g, but using an uppercase E
%i Decimal notation (signed)
%oOctal notation (unsigned)
%s String of characters
%u Decimal notation (unsigned)
%x Hexadecimal notation (using lowercase letters a-f)
%X Hexadecimal notation (using uppercase letters A-F)
里面没有float格式的输出吧,不知道各位是怎么实现浮点输出的。
还有个问题,既然matlab可以按格式读入,它不能实现格式输出吗?才接触,可是很急用,感谢各位了。
jasonzou 当前离线   回复时引用此帖
 


发帖规则
不可以发表新主题
不可以发表回复
不可以上传附件
不可以编辑自己的帖子

启用 BB 代码
论坛启用 表情符号
论坛启用 [IMG] 代码
论坛禁用 HTML 代码



所有时间均为北京时间。现在的时间是 05:09


Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.