view recorded radar data in matlab

Announcements

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

cross mob
Taylor70
Level 3
Level 3
First solution authored 10 replies posted 50 sign-ins

Hey

Is there a way to view the recorded radar data captured in the "Radar Fusion GUI" in matlab signal analyzer app?

They are saved as a .json and raw.bin files which matlab can't read 

thanks 🙂

0 Likes
1 Solution
Honey_D
Moderator
Moderator
Moderator
5 comments on blog 50 likes received 250 replies posted

Hello @Taylor70 ,

While recording the data from Radar Fusion GUI, select the Raw Data(.txt) format from recording settings.

Capture.PNG

Following the recording, extract the data from txt file into MATLAB using the following code:

% Read in file
allData = textread('BGT60TR13C_record_20220801-104524.raw.txt', '%s', 'delimiter', '\n');
% Make allData cells empty if numerical
numericalArray = cellfun(@(s) sscanf(s,'%f').' ,allData, 'un', 0);
% Get Header
header = allData(cellfun('isempty',numericalArray));
% Get Data
data = vertcat(numericalArray{:});
plot(data)

Following the execution of the code, save the data variable in the workspace into .mat format to plot it in signal analyzer

Matlab_data.PNG

Hope this helps!

Best Regards,

Honey

 

View solution in original post

0 Likes
1 Reply
Honey_D
Moderator
Moderator
Moderator
5 comments on blog 50 likes received 250 replies posted

Hello @Taylor70 ,

While recording the data from Radar Fusion GUI, select the Raw Data(.txt) format from recording settings.

Capture.PNG

Following the recording, extract the data from txt file into MATLAB using the following code:

% Read in file
allData = textread('BGT60TR13C_record_20220801-104524.raw.txt', '%s', 'delimiter', '\n');
% Make allData cells empty if numerical
numericalArray = cellfun(@(s) sscanf(s,'%f').' ,allData, 'un', 0);
% Get Header
header = allData(cellfun('isempty',numericalArray));
% Get Data
data = vertcat(numericalArray{:});
plot(data)

Following the execution of the code, save the data variable in the workspace into .mat format to plot it in signal analyzer

Matlab_data.PNG

Hope this helps!

Best Regards,

Honey

 

0 Likes