フィルターのクリア

How to plot .bin file?

6 ビュー (過去 30 日間)
Uspike
Uspike 2015 年 6 月 27 日
編集済み: Uspike 2015 年 8 月 6 日
Hi,
I am new for MatLab. I have a .bin file which I got from Oscilloscope. I need to Read the file, Plot and then do FFT on the date. Could anyone please explain me?
  1 件のコメント
Walter Roberson
Walter Roberson 2015 年 6 月 27 日
The first thing you need to do is research the exact file format of the .bin file. There is no standard for how .bin files are laid out: .bin as a suffix gets used for any arbitrary binary format.
For example is there one time-stamp for every sample, or is there a header giving the first time and the interval between samples? Is the time represented in as a string in M/D/YY H:MM:s.f format such as 6/23/15 2:07:11.2, or is it represented as a 128 bit count of nanoseconds since August 18, 1947 14:00:00 PDT (the official incorporation day of Hewlett-Packard)? Are the voltages represented with 8 bit values in "Bias 140" format (that is, 140 represents 0, 141 represents 0 + 1/128, 139 represents 0 - 1/128) ? And so on. The exact structure of the file needs to be known before it can be read.

サインインしてコメントする。

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2015 年 6 月 27 日
Use fread function to read your file and fft function to calculate the fft
  1 件のコメント
Uspike
Uspike 2015 年 6 月 27 日
Thanks for the swift reply. Can you please elaborate. I am so new to matlab and its tough for me to understand.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangePulse and Transition Metrics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by