% file: plot_all.m % author: florian.kaltenberger@eurecom.fr % purpose: plots the results from the UE for several directories % requires pathname to be set to the right directory close all clear all % in the following two lines set the root path and select the subfolders % you want to plot root_path = '/emos/PENNE/Mode2'; d = dir(fullfile(root_path, '*VTP*')); dir_names = {d.name}; % set to the output directory pathname = '/emos/PENNE/Mode2/results'; mm='penne'; decimation = 100; %% for i=1:length(dir_names) if exist(fullfile(root_path,dir_names{i},'results_eNB.mat'),'file') temp = load(fullfile(root_path,dir_names{i},'results_eNB.mat')); %results_eNB = cat(1,results_eNB,temp); if (i==1) nn = fieldnames(temp); for n = 1:length(nn) eval([nn{n} '= [];']); [dummy, dim(n)] = eval(['max(size(temp.' nn{n} '))']); end end for n = 1:length(nn) eval([nn{n} '= cat(' num2str(dim(n)) ', ' nn{n} ', temp.' nn{n} ');']); end fprintf('%d/%d\n',i,length(dir_names)); end % if exist(fullfile(root_path,dir_names{i},'nomadic','results_UE_new.mat'),'file') % nomadic = load(fullfile(root_path,dir_names{i},'nomadic','results_UE_new.mat')); % results_UE_nomadic = cat(2,results_UE_nomadic,nomadic.minestimates); % %phy_measurements_cat = [phy_measurements_cat temp.phy_measurements_cat]; % timestamp_cat = [timestamp_cat temp.timestamp_cat]; % frame_tx_cat = [frame_tx_cat temp.frame_tx_cat]; % rx_rssi_dBm_cat = [rx_rssi_dBm_cat; temp.rx_rssi_dBm_cat]; % pbch_fer_cat = [pbch_fer_cat; temp.pbch_fer_cat]; % dlsch_fer_cat = [dlsch_fer_cat; temp.dlsch_fer_cat]; % mcs_cat = [mcs_cat; temp.mcs_cat]; % %tbs_cat = [tbs_cat; temp.tbs_cat]; % UE_mode_cat = [UE_mode_cat temp.UE_mode_cat]; % gps_lon_cat = [gps_lon_cat temp.gps_lon_cat]; % gps_lat_cat = [gps_lat_cat temp.gps_lat_cat]; % %gps_time_cat = [gps_time_cat [gps_data.timestamp]]; % end end % save(fullfile(pathname,'results_eNB.mat')); save(fullfile(pathname,'results_eNB.mat'),nn{:}); h_fig = 0; %plot_results_eNb_quick