-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharticle_figures.m
66 lines (51 loc) · 1.33 KB
/
article_figures.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
%%% This script will plot all article figures 2 - 7.
clear all
close all
clc
warning 'off'
%%% Check toolboxes
if ~contains(path, "SBPD")
disp('Please check SBtoolbox installation - download from: http://www.sbtoolbox2.org/main.php')
else
%%
msg = "Which model to use?";
menu_opt = [ "Figure. 2" ...
"Figure. 3" ...
"Figure. 4" ...
"Figure. 5" ...
"Figure. 6" ...
"Figure. 7" ];
choice = menu(msg,menu_opt);
%%
addpath('./Models/');
if choice == 6
modelName = 'nafldv5_IR_Hall';
else
modelName = 'nafldv5';
end
cd ./Models
SBPDmakeMEXmodel(SBmodel(strcat(modelName,'.txt')))
cd ..
%%
if choice == 1
run('./CODE/setup')
disp('Calculating the model uncetraitiy based on the sampled parametersets - this might take a while...')
run('./CODE/PLOT/plot_Figure_2.m') ;
elseif choice == 2
run('./CODE/setup')
run('./CODE/PLOT/plot_Figure_3.m') ;
elseif choice == 3
run('./CODE/setup')
run('./CODE/PLOT/plot_Figure_4.m') ;
elseif choice == 4
run('./CODE/setup')
disp('Calculating the model uncetraitiy based on the sampled parametersets - this might take a while...')
run('./CODE/PLOT/plot_Figure_5.m') ;
elseif choice == 5
run('./CODE/setup')
run('./CODE/PLOT/plot_Figure_6.m') ;
elseif choice == 6
run('./CODE/setup')
run('./CODE/PLOT/plot_Figure_7.m') ;
end
end