MATLAB Answers

Importing .bin file and doing Time Domain Analysis

1 ビュー (過去 30 日間)
Tahajib Abdur Rahman
Tahajib Abdur Rahman 2020 年 9 月 10 日
Is it possible to import a .bin file to Matlab? How? Do I need to make any format conversion of .bin file before importing it?
  1 件のコメント
Walter Roberson
Walter Roberson 2020 年 9 月 10 日
.bin is not a standard file format. .bin is an extension programmers use for any binary data that only works with their particular program. You would need details on how that particular program stores data inside the file.


回答 (1 件)

Ayush Gupta
Ayush Gupta 2020 年 9 月 16 日
A bin file can be imported in MATLAB using fread function. Suppose we have a bin file named input.bin, refer to the following code:
fileID = fopen('input.bin');
A = fread(fileID)
The documentation of fread and examples on how to use it, refer here.
  2 件のコメント
Tahajib Abdur Rahman
Tahajib Abdur Rahman 2020 年 9 月 16 日
Thanks Walter. Appreciate it.





Community Treasure Hunt

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

Start Hunting!

Translated by