-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathtubeSettings.m
55 lines (42 loc) · 1.3 KB
/
tubeSettings.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
function [ elem_filters ] = tubeSettings( tube_select )
%% Library of tube settings for Spektr
%%
%% Purpose:
%% Allow users to specify inherent filtrations for different tubes that could
%% be used from the Spektr GUI
% Find the tube selected, filter the beam accordingly
if strcmp(tube_select,'Boone/Fewell')== 1
BooneFewell = [13 0; 74 0];
filters = BooneFewell;
elseif strcmp(tube_select,'Tube_01')==1
Tube01 = [13 2; 74 .005];
filters = Tube01;
elseif strcmp(tube_select,'Tube_02')==1
Tube02 = [13 .54; 74 .01];
filters = Tube02;
elseif strcmp(tube_select,'Tube_03')==1
Tube03 = [13 0; 74 0];
filters = Tube03;
elseif strcmp(tube_select,'Tube_04')==1
Tube04 = [13 0; 74 0];
filters = Tube04;
elseif strcmp(tube_select,'Tube_05')==1
Tube05 = [13 0; 74 0];
filters= Tube05;
elseif strcmp(tube_select,'Tube_06')==1
Tube06 = [13 0;74 0];
filters = Tube06;
elseif strcmp(tube_select,'Tube_07')==1
Tube07 = [13 0;74 0];
filters = Tube07;
elseif strcmp(tube_select,'Tube_08')==1
Tube08 = [13 0;74 0];
filters= Tube08;
elseif strcmp(tube_select,'Tube_09')==1
Tube09 = [13 0;74 0];
filters = Tube09;
else
filters = [];
end
elem_filters = filters;
end