I am trying to import and read a binary data file of the following format in MATLAB. I need to read in all the data, however at this point im just trying to read in the first 4 char, but i keep getting a blank array. Nothing seems to be working and I have been stuck for days.
Thanks in advance for your help!
fid = fopen('file.dat','r');
if fid <0
error('error opening file %s\n file.dat')
Program_label = fread(fid,[1 4],*char)
m = memmapfile('GSS1_t023_is_phcorr_ideal.dat');