Matlab学习笔记_图文.doc
文本预览下载声明
Matlab学习笔记_图文
导读:就爱阅读网友为您分享以下“Matlab学习笔记_图文”的资讯,希望对您有所帮助,感谢您对92的支持!
Floating point format, with 14 to 15 digits after the decimal point for double; and 7 digits after the decimal point for single. For example, 3.141592653589793e+000.
hex
Hexadecimal (hexadecimal representation of a binary double-precision number). For example, 400921fb54442d18
rat
Ratio of small integers. For example, 355/113
format命令设置的输出格式仅对当前窗口有效,要想在下次使用matlab时仍使用某种输出格式,应在preferences中进行设置。
The specified format applies only to the current MATLAB session. To maintain a format across sessions, use MATLAB preferences. Preferences
查看当前使用的格式:
get(0,#39;Format#39;)
例子:
Example 1
Change the format to long by typing
format long
View the result for the value of pi by typing
显示全部