Announcements

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anna-xuan
Level 3
Level 3
25 sign-ins 10 replies posted First like received

I  need to generated the RDI of the BGT60TR13C with matlab.But i can't read the raw data generated with Radar Fusion Gui with matlab,so if it has the codes of read the data from the ducument  'raw.bin'?Then after read the data,i will do the FFT.

0 Likes
1 Solution
Neo_Lu
Moderator
Moderator
Moderator
50 replies posted 5 likes given 100 sign-ins

Hi,

OK, understood.

The way to open .bin file is listed:

1. Saving data from Fusion GUI, as .bin.

2. Open MATLAB(My version is 2021b), the MATLAB code to open the file :

More about the way to open file:

https://www.mathworks.com/help/matlab/ref/fread.html 

Please confirm your data path.

 

fileID = fopen('C:\Users\LuShe\Desktop\DemoBin.bin');
A = fread(fileID);

 

 3. Run the code you will get the Matrix A which contain the raw data you need.

Neo_Lu_0-1666679535337.png

Hope that will help you,

Neo Lu

View solution in original post

0 Likes
3 Replies
Neo_Lu
Moderator
Moderator
Moderator
50 replies posted 5 likes given 100 sign-ins

Hi, 

Thanks for the question.

So you want to read the raw data generated by Radar Fusion GUI recording function, and then do FFT with the row data by Matlab.

My understanding is that the FFT is performed after the data generated, and not at the same time. Your core problem is reading the data from bin/txt file.

May I know my understand is right? 

Thanks,

Neo Lu

0 Likes

Hi,Neo_Lu

Thank you for your reply.Your understanding is what i want to describe.My problem is reading the data from bin file with matlab.

0 Likes
Neo_Lu
Moderator
Moderator
Moderator
50 replies posted 5 likes given 100 sign-ins

Hi,

OK, understood.

The way to open .bin file is listed:

1. Saving data from Fusion GUI, as .bin.

2. Open MATLAB(My version is 2021b), the MATLAB code to open the file :

More about the way to open file:

https://www.mathworks.com/help/matlab/ref/fread.html 

Please confirm your data path.

 

fileID = fopen('C:\Users\LuShe\Desktop\DemoBin.bin');
A = fread(fileID);

 

 3. Run the code you will get the Matrix A which contain the raw data you need.

Neo_Lu_0-1666679535337.png

Hope that will help you,

Neo Lu

0 Likes