Commit e25e614c authored by cliansang's avatar cliansang
Browse files

Put all the demo scripts into a directory

parent 64e4f960
close all; clear; clc;
% add directory to the path
addpath('helper_functions'); % add "helper_functions" to the path
addpath('..\');
addpath('..\helper_functions'); % add "helper_functions" to the path
%%%%%%%%%%%%%%%%%%%% REAL MEASUREMENT DATA %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Load the logged Data
getRangeUWB = importfile_Ranges('exp_data\UWB_data_Ranges\output_range_uwb_m2r.txt');
getRangeUWB = importfile_Ranges('..\exp_data\UWB_data_Ranges\output_range_uwb_m2r.txt');
[rowR, colR] = size(getRangeUWB);
ts_R = getRangeUWB.ts;
tid = getRangeUWB.tagID; % tag ID no.
......@@ -99,7 +100,7 @@ end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% load the Vican data stored in the MAT file
vd = load('exp_data\Vicon_mat\m2R.mat');
vd = load('..\exp_data\Vicon_mat\m2R.mat');
v_ts = vd.posedata_uwb(:, 2);
vX = vd.posedata_uwb(:, 4); % position X
vY = vd.posedata_uwb(:, 5); % position Y
......
close all; clear; clc;
% add directory to the path
addpath('helper_functions'); % add "helper_functions" to the path
addpath('..\');
addpath('..\helper_functions');
%%%%%%%%%%%%%%%%%%%% REAL MEASUREMENT DATA %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Load the logged Data
getRangeUWB = importfile_Ranges('exp_data\UWB_data_Ranges\output_range_uwb_m2r.txt');
getRangeUWB = importfile_Ranges('..\exp_data\UWB_data_Ranges\output_range_uwb_m2r.txt');
[rowR, colR] = size(getRangeUWB);
ts_R = getRangeUWB.ts;
tid = getRangeUWB.tagID; % tag ID no.
......@@ -141,7 +142,7 @@ end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% load the Vican data stored in the MAT file
vd = load('exp_data\Vicon_mat\m2R.mat');
vd = load('..\exp_data\Vicon_mat\m2R.mat');
v_ts = vd.posedata_uwb(:, 2);
vX = vd.posedata_uwb(:, 4); % position X
vY = vd.posedata_uwb(:, 5); % position Y
......
close all; clear; clc;
% add directory to the path
addpath('helper_functions'); % add "helper_functions" to the path
addpath('..\');
addpath('..\helper_functions');
%%%%%%%%%%%%%%%%%%%% REAL MEASUREMENT DATA %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Load the logged Data
getRangeUWB = importfile_Ranges('exp_data\UWB_data_Ranges\output_range_uwb_m2r.txt');
getRangeUWB = importfile_Ranges('..\exp_data\UWB_data_Ranges\output_range_uwb_m2r.txt');
[rowR, colR] = size(getRangeUWB);
ts_R = getRangeUWB.ts;
tid = getRangeUWB.tagID; % tag ID no.
......@@ -89,7 +90,7 @@ end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% load the Vican data stored in the MAT file
vd = load('exp_data\Vicon_mat\m2R.mat');
vd = load('..\exp_data\Vicon_mat\m2R.mat');
v_ts = vd.posedata_uwb(:, 2);
vX = vd.posedata_uwb(:, 4); % position X
vY = vd.posedata_uwb(:, 5); % position Y
......
close all; clear; clc;
% add directory to the path
addpath('helper_functions'); % add "helper_functions" to the path
addpath('..\');
addpath('..\helper_functions');
%%%%%%%%%%%%%%%%%%%% REAL MEASUREMENT DATA %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Load the logged Data
getRangeUWB = importfile_Ranges('exp_data\UWB_data_Ranges\output_range_uwb_m2r.txt');
getRangeUWB = importfile_Ranges('..\exp_data\UWB_data_Ranges\output_range_uwb_m2r.txt');
[rowR, colR] = size(getRangeUWB);
ts_R = getRangeUWB.ts;
tid = getRangeUWB.tagID; % tag ID no.
......@@ -108,7 +109,7 @@ end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% load the Vican data stored in the MAT file
vd = load('exp_data\Vicon_mat\m2R.mat');
vd = load('..\exp_data\Vicon_mat\m2R.mat');
v_ts = vd.posedata_uwb(:, 2);
vX = vd.posedata_uwb(:, 4); % position X
vY = vd.posedata_uwb(:, 5); % position Y
......
close all; clear; clc;
% add directory to the path
addpath('helper_functions'); % add "helper_functions" to the path
addpath('..\');
addpath('..\helper_functions');
%%%%%%%%%%%%%%%%%%%% REAL MEASUREMENT DATA %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Load the logged Data
getRangeUWB = importfile_Ranges('exp_data\UWB_data_Ranges\output_range_uwb_m2r.txt');
getRangeUWB = importfile_Ranges('..\exp_data\UWB_data_Ranges\output_range_uwb_m2r.txt');
[rowR, colR] = size(getRangeUWB);
ts_R = getRangeUWB.ts;
tid = getRangeUWB.tagID; % tag ID no.
......@@ -110,7 +111,7 @@ end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% load the Vican data stored in the MAT file
vd = load('exp_data\Vicon_mat\m2R.mat');
vd = load('..\exp_data\Vicon_mat\m2R.mat');
v_ts = vd.posedata_uwb(:, 2);
vX = vd.posedata_uwb(:, 4); % position X
vY = vd.posedata_uwb(:, 5); % position Y
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment