So I have some data that I need to go through. Now I'm decent with Matlab...but Matlab isn't really coding.
so I'm trying to load up some binary files. I figured out how to use some commands in matlab (fseek, fread, fopen) however I can't get my data to look anything like what I'm expecting.
I think part of it might be because I don't fully understand the 'terminology'.
Each file, has "200 blocks in the following structure: uint32, double [50], double [50]"
I tried to read up on blocks...and from what I've learned, a block is a way to divide up a series of bytes evenly. But what do they mean when they say "200 blocks"?
What I do know is that the first 'value' (sorry if these are the wrong words) is a 32 bit unsigned integer, then I have 50 double values, and then I have another set of 50 double values.
So this is what I'm understanding thus far:
I need to read the first 200 blocks as a single 32 bit integer
I need to read the next 50 sets of 200 blocks as a double
I need to read the last 50 sets of 200 blocks as a double
Did I understand this correct? Does the phrase "read the first 200 blocks as a single 32 bit integer" even make sense?
Is there a link where I can understand this? I feel like I'm not getting the organization structure correctly...and if that is the case, I could probably be chopping up this data forever and still not get it right
so I'm trying to load up some binary files. I figured out how to use some commands in matlab (fseek, fread, fopen) however I can't get my data to look anything like what I'm expecting.
I think part of it might be because I don't fully understand the 'terminology'.
Each file, has "200 blocks in the following structure: uint32, double [50], double [50]"
I tried to read up on blocks...and from what I've learned, a block is a way to divide up a series of bytes evenly. But what do they mean when they say "200 blocks"?
What I do know is that the first 'value' (sorry if these are the wrong words) is a 32 bit unsigned integer, then I have 50 double values, and then I have another set of 50 double values.
So this is what I'm understanding thus far:
I need to read the first 200 blocks as a single 32 bit integer
I need to read the next 50 sets of 200 blocks as a double
I need to read the last 50 sets of 200 blocks as a double
Did I understand this correct? Does the phrase "read the first 200 blocks as a single 32 bit integer" even make sense?
Is there a link where I can understand this? I feel like I'm not getting the organization structure correctly...and if that is the case, I could probably be chopping up this data forever and still not get it right