- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 🙂
Solved! Go to Solution.
- Labels:
-
Radar Sensor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @Taylor70 ,
While recording the data from Radar Fusion GUI, select the Raw Data(.txt) format from recording settings.
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
Hope this helps!
Best Regards,
Honey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @Taylor70 ,
While recording the data from Radar Fusion GUI, select the Raw Data(.txt) format from recording settings.
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
Hope this helps!
Best Regards,
Honey