Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28632 Discussions

Reading binary files written by IVF into MATLAB

rdsrivathsa
Beginner
437 Views

My32-bit Fortran program ouputs a binary (unformatted) data file. I am trying to read the data file into MATLAB. I know the order of the variables written to the binary file along with their types.

I have tried several ways of reading it but without any success. Has anyone in this forum has gone through this process of accessing Fortran-produced binary files in MATLAB?If any of you have gone through this process, I would much appreciate if you can share your experiences.

Many Thanks!

0 Kudos
1 Reply
Steven_L_Intel1
Employee
437 Views
Are you aware that normal Fortran unformatted files have record lengths before and after the data? If you don't want that, then when you create the file, specify ACCESS='STREAM' in the OPEN.
0 Kudos
Reply