binareader

版本 1.2.0.0 (36.7 KB) 作者: Naor Movshovitz
Peek into an unknown binary file
220.0 次下载
更新时间 2016/10/18

查看许可证

A helpful colleague sent you the data you requested. It's a forward of a forward of an email from the grad student (now a peace corp volunteer in Africa) that took the measurements in 1992. The attached file has a '.xyz' extension, which your colleague is pretty sure is the format used by the mass spectrometer control software -- not the one they use now but the one they had before the lab was flooded in 1993. She thinks it contains floating point numbers. Was there some mention of an ascii header? Oh yes, the desktop running the original software was definitely a vax machine. Or maybe it was running Windows 3.1? "Well anyway, hope that helps - good luck!"
A binareader is a little gui window that simplifies opening an unknown binary file and displaying the first few lines. With options to quickly change your best guess as to what those unknown bits represent (and what machine format was used to save the file) a small preview window updates with the parsed content. For convenience, there are buttons to save the data to the workspace or to a file once the right interpretation is found.
Usage is simple. Fire up binareader, notice how ugly and feature-poor it is (don't worry this gui will not stay open for long!) and load the unknown file. Use the buttons to increase the number of suspected ascii header lines until the header preview pane includes one line of garbled nonsense -- then decrease by one line. Look at the numbers in the data preview pane. Do they kind of make sense? Use the radio buttons to try a different number format (int, float, 32 or 64 bits) or endianness. Do the numbers kind of make sense now? Save the data and exit binareader. HTH; good luck!

引用格式

Naor Movshovitz (2024). binareader (https://www.mathworks.com/matlabcentral/fileexchange/50397-binareader), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2014b
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.2.0.0

Following suggestion of FEX user now supporting load of all numeric types (like uint16 etc...)
Added a button to display the command sequence for loading so user can include in script to open similar files.
Fixed bug in calculation of header bytes

1.1.0.0

Fixed typo in description

1.0.0.0