Mathematica常用命令

文件操作

Mathematica的一行命令讀取二進制bin文件:

BinaryReadList["file","type"]

其中,file爲bin文件的路徑地址;type爲bin文件的存儲格式。

type的值有:

  • "Byte" 8位無符號整數
  • "Character8" 8位字符
  • "Character16" 16位字符
  • "Complex64" IEEE 単精度複數
  • "Complex128" IEEE 雙精度複數
  • "Complex256" IEEE 四精度複數
  • "Integer8" 8位符號整數
  • "Integer16" 16位符號整數
  • "Integer32" 32位符號整數
  • "Integer64" 64位符號整數
  • "Integer128" 128位符號整數
  • "Real32" IEEE 単精度實數
  • "Real64" IEEE 雙精度實數
  • "Real128" IEEE 四精度實數
  • "TerminatedString" 由8位字符組成的以null結束的字符串
  • "UnsignedInteger8" 8位無符號整數
  • "UnsignedInteger16" 16位無符號整數
  • "UnsignedInteger32" 32位無符號整數
  • "UnsignedInteger64" 64位無符號整數
  • "UnsignedInteger128" 128位無符號整數

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章