How can i open/load .dat (binary) file in matlab?
조회 수: 2 (최근 30일)
이전 댓글 표시
The file is uploaded at this link
https://www.dropbox.com/s/48kftolenx74zvn/BLT.DAT
I obtain it from HP 35665A Dynamic Signal Analyser. It contains amplitude and frequency information to plot graphs.
please help me to read/load and convert this into .mat format.
댓글 수: 0
답변 (1개)
Image Analyst
2013년 11월 30일
Use fopen(), fread(), and fclose().
댓글 수: 2
Image Analyst
2013년 11월 30일
편집: Image Analyst
2013년 11월 30일
You never read the help on them, did you. If you did, did you notice any examples at the bottom? The example code looks nothing at all like yours. fread() does not take a file name, it takes a file handle that is the output of fopen(). Same for fclose(). I suggest you try to follow the examples.
참고 항목
카테고리
Help Center 및 File Exchange에서 Low-Level File I/O에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!