-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcall_set_parameters_set_up_exp.m
106 lines (93 loc) · 2.89 KB
/
call_set_parameters_set_up_exp.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
function [clbrsrcol,clbrsrstr,filepathexplst,filepathexp2,cols,filepathexp,col]...
= call_set_parameters_set_up_exp(clbrsr,cols,filepathexp,labelmodes,qdexp,asm,sm,cm,sret,torb,modelst)
%clbrsr=2;noofm=10;filepathexp='C:\Users\Manfred Beutel\Dropbox\Masterarbeit\Messung\NbSTO(0.5clean)_19.05_2016_measuredbymarkus\analysis2\complex_sb0_sr\';
%labelmodes=[12,2,3,4,45];asm=0;sm=1;cm=3;qdexp='Yes';
%set parameter for loop
switch clbrsr
case 0
switch asm
case 0
if cols==1;
col=1;
sm=1;
clbrsrcol=1;
else
col=1;
clbrsrcol=1:1:cols;
end
case 1
col=sm;
clbrsrcol=1:1:cols;
case 2
col=sm;
clbrsrcol=1:1:cols;
end
case 1
cols=1;
clbrsrcol=clbrsr;
col=1;
case 2
cols=2;
clbrsrcol=clbrsr;
col=1;
case 3
cols=cols;
clbrsrcol=1:1:cols;
clbrsrstr='';
filepathexplst={};
col=1;
end;
%make paths and folder for export of data
switch clbrsr
case 0
clbrsrstr='cl';
filepathexplst={};
for i=sm:1:length(labelmodes);
if strcmpi(qdexp,'Yes')
filepathexp2=filepathexp;
if torb==2
labelmodelength='length';
else
labelmodelength='mode';
end
filepathexp2=strcat(filepathexp,labelmodelength,num2str(labelmodes(i)),'_',clbrsrstr);
switch asm
case 0
mkdir(filepathexp2);
case 1
if i==sm
mkdir(filepathexp2);
end
case 2
mkdir(filepathexp2);
end
filepathexplst{i}=strcat(filepathexp2,'\');
end
end
case 1
filepathexplst={};
filepathexp2=filepathexp;
clbrsrstr='br';
if strcmpi(qdexp,'Yes')
filepathexp=strcat(filepathexp,'mode',num2str(cm),'_',clbrsrstr);
mkdir(filepathexp);
filepathexp=strcat(filepathexp,'\');
end
case 2
filepathexplst={};
filepathexp2=filepathexp;
clbrsrstr='sr';
if strcmpi(qdexp,'Yes')
filepathexp=strcat(filepathexp,'mode',num2str(cm),'_',clbrsrstr);
mkdir(filepathexp);
filepathexp=strcat(filepathexp,'\');
end
case 3;
filepathexp=filepathexp;
filepathexp2=strcat(filepathexp,'fitted spectrum\');
mkdir(filepathexp2);
labelmodelength='';
end
if strcmpi(qdexp,'No')
filepathexp2='C:';
end