Good day,
I am trying to read the the saved dat file from the mmWave demo visualiser. I have managged to open open the file but reading it is a challenge. Here is where I am at the moment.
%% read the dat file. my_file=fopen('dat_3.dat'); % extract the header here!! magicword=fread(my_file,8,'uint16'); header = headRead(my_file) data=cell(header{7},3); % 3 for the tag,length and payload. for i=1:header{7} TLV=getTLV(my_file,header{6},range_bins_num,tx_num,rx_num,chirpsperframe); data(i,:)=TLV; end
line 8 to convert the cell is throwing the error I attached below:
How can I best read the header?
attached is the dat file: