matlab如何输出D-H表,MATLAB结果怎么输出表格形式的数据?
2015-04-06 回答
數據顯示格式可以由命令:vpa,format等改變另外還有fprintf格式與c基本一致,format rational最接近的有理數,format long 14位小數,format恢復。vap(c,6)設置c為6位小數。fprintf(‘%20.6f’,c)。
至于你的問題,你可以使用vap(最好)也可以使用format long eng,如果問題允許你也可以事先處理數據使之再適合范圍。推薦你使用help,其中有詳細介紹。
format命令參數:
short
scaled fixed point format, with 4 digits after the decimal point. for example, 3.1416.
long
scaled fixed 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.141592653589793.
short e
floating point format, with 4 digits after the decimal point. for example, 3.1416e+000.
long e
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.
short g
best of fixed or floating point, with 4 digits after the decimal point. for example, 3.1416.
long g
best of fixed or floating point, with 14 to 15 digits after the decimal point for double; and 7 digits after the decimal point for single. for example, 3.14159265358979.
short eng
engineering format that has 4 digits after the decimal point, and a power that is a multiple of three. for example, 3.1416e+000.
long eng
engineering format that has exactly 16 significant digits and a power that is a multiple of three. for example, 3.14159265358979e+000.
總結
以上是生活随笔為你收集整理的matlab如何输出D-H表,MATLAB结果怎么输出表格形式的数据?的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 用matlab求残余误差,matlab在
- 下一篇: oracle索引对模糊查询,Oracle