How can I open an Oxfor Instrument Pulsar .fid file in MATLAB?

조회 수: 5 (최근 30일)
Marina Batlló RIus
Marina Batlló RIus 2023년 3월 18일
댓글: Star Strider 2023년 4월 1일
I have several .fid files obtained using an Oxford Instrument Pulsar. This datafiles contain information about NMR data, and I can open them with MESTRENOVA with no problem. However, I am trying to create a full code in MATLAB that loads and treats the data, so I don't want to be dependent on external softwares.
When I upload the data into MATLAB using fread, I obtain something like this:
when I know the result should look like this:
Could anybody help me or guide me on how to open this datafiles ?
Thank you
  댓글 수: 1
Star Strider
Star Strider 2023년 3월 19일
As I advised in my Answer
Use zip or a non-MATLAB version of it to create a zip file that encloses the file you want to read, then upload it here.

댓글을 달려면 로그인하십시오.

채택된 답변

Star Strider
Star Strider 2023년 3월 18일
Use zip or a non-MATLAB version of it to create a zip file that encloses the file you want to read, then upload it here. I have no idea what that file format is, however using readtable or a similar function and specifying 'FileType','text' might make it possible to read it in MATLAB if it is a text file.
If it is a binary file, there are options to read those as well if you know the encoding and format.
Otherwise, see if it is possible for the existing software to output a MATLAB .mat file or some format such as .xlsx that MATLAB can read easily.
  댓글 수: 6
Marina Batlló RIus
Marina Batlló RIus 2023년 4월 1일
Yeah, it is possible to do so with another software, but was trying to avoid that step because I need a full MATLAB executable that can take those. I haven't find either any information online on how to do it in MATLAB, so maybe there is no solution for those. Anyway thanks for your time!
Star Strider
Star Strider 2023년 4월 1일
The problem is not MATLAB, only the file format. If you can save it to an Excel file or even as a regular text file, that would work. The .fid files are apparently not readable unless it is possible to recover the encoding scheme and program it in MATLAB.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2023년 3월 18일
If it is a binary data file, then you can use fread(). See this doc how to employ fread():

카테고리

Help CenterFile Exchange에서 Data Type Identification에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by