Skip to content

Commit fcb48da

Browse files
committed
add path in a different way, in some machine the addpath(genpath()) command doesn't work as expected.
1 parent 6fde883 commit fcb48da

4 files changed

+17
-9
lines changed

Demo1_random_curves.m

+4-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@
2929
% It is flexible to use different bleaching curves.
3030
% one can calculate a bleaching curve, or use experiment calibration
3131
% observation.
32-
33-
addpath(genpath([packagePath,'/Library']));
32+
cp=pwd;
33+
cd([packagePath,'/Library'])
34+
addpath(genpath(pwd));
35+
cd(cp)
3436

3537
%% specify Feature properties. [demonstration of random curves]
3638
% Here we demonstrate an example to simulate random curves.

Demo2_random_aggregates.m

+5-3
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@
2929
% It is flexible to use different bleaching curves.
3030
% one can calculate a bleaching curve, or use experiment calibration
3131
% observation.
32-
33-
addpath(genpath([packagePath,'/Library']));
34-
32+
cp=pwd;
33+
cd([packagePath,'/Library'])
34+
addpath(genpath(pwd));
35+
cd(cp)
36+
3537
%% specify Feature properties. [demonstration of random curves]
3638
% Here we demonstrate an example to simulate random curves.
3739
Feature.UniLen = 9.333; % Unit Length Before Binning, (nm), It's not the strign Link Length (Feature.StriLL).

Demo3_random_vesicles.m

+4-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@
2929
% It is flexible to use different bleaching curves.
3030
% one can calculate a bleaching curve, or use experiment calibration
3131
% observation.
32-
33-
addpath(genpath([packagePath,'/Library']));
32+
cp=pwd;
33+
cd([packagePath,'/Library'])
34+
addpath(genpath(pwd));
35+
cd(cp)
3436

3537
%% specify Feature properties. [demonstration of random curves]
3638
% Here we demonstrate an example to simulate random curves.

Demo4_overlay_precomputed_features.m

+4-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@
2929
% It is flexible to use different bleaching curves.
3030
% one can calculate a bleaching curve, or use experiment calibration
3131
% observation.
32-
33-
addpath(genpath([packagePath,'/Library']));
32+
cp=pwd;
33+
cd([packagePath,'/Library'])
34+
addpath(genpath(pwd));
35+
cd(cp)
3436

3537
%% specify Feature properties. [demonstration of overlyaing multiple precomputed features]
3638
% Here we demonstrate an example to use pre-computed feature.

0 commit comments

Comments
 (0)