%%%%%%%%%%%%%%%%%%%%%%%%%% % array = getBaselineArray(ind1,ind2); % % % Returns the elements of the baseline array % for a given set of antenna. % % 1 2 3 4 5 6 7 % % 1 0-1 0-2 0-3 0-4 0-5 0-6 0-7 % 2 1-0 1-2 1-3 1-4 1-5 1-6 1-7 % 3 2-0 2-1 2-3 2-4 2-5 2-6 2-7 % 4 3-0 3-1 3-2 3-4 3-5 3-6 3-7 % 5 4-0 4-1 4-2 4-3 4-5 4-6 4-7 % 6 5-0 5-1 5-2 5-3 5-4 5-6 5-7 % 7 6-0 6-1 6-2 6-3 6-4 6-5 6-7 % 8 7-0 7-1 7-2 7-3 7-4 7-5 7-6 % % % Author: Christopher Greer % greer@oddjob.uchicago.edu % % NEW: 17-nov-2005 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0001 function array = getBaselineArray(ind1,ind2); 0002 0003 %%%%%%%%%%%%%%%%%%%%%%%%%%% 0004 %% array = getBaselineArray(ind1,ind2); 0005 %% 0006 %% 0007 %% Returns the elements of the baseline array 0008 %% for a given set of antenna. 0009 %% 0010 %% 1 2 3 4 5 6 7 0011 %% 0012 %% 1 0-1 0-2 0-3 0-4 0-5 0-6 0-7 0013 %% 2 1-0 1-2 1-3 1-4 1-5 1-6 1-7 0014 %% 3 2-0 2-1 2-3 2-4 2-5 2-6 2-7 0015 %% 4 3-0 3-1 3-2 3-4 3-5 3-6 3-7 0016 %% 5 4-0 4-1 4-2 4-3 4-5 4-6 4-7 0017 %% 6 5-0 5-1 5-2 5-3 5-4 5-6 5-7 0018 %% 7 6-0 6-1 6-2 6-3 6-4 6-5 6-7 0019 %% 8 7-0 7-1 7-2 7-3 7-4 7-5 7-6 0020 %% 0021 %% 0022 %% Author: Christopher Greer 0023 %% greer@oddjob.uchicago.edu 0024 %% 0025 %% NEW: 17-nov-2005 0026 %% 0027 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0028 0029 if(isempty(ind1)) 0030 ind1 = 1:8; 0031 end 0032 0033 if(isempty(ind2)) 0034 ind2 = 1:7; 0035 end 0036 0037 0038 array = [1 2 3 4 5 6 7; 0039 1 8 9 10 11 12 13; 0040 2 8 14 15 16 17 18; 0041 3 9 14 19 20 21 22; 0042 4 10 15 19 23 24 25; 0043 5 11 16 20 23 26 27; 0044 6 12 17 21 24 26 28; 0045 7 13 18 22 25 27 28]; 0046 0047 array = array(ind1,ind2); 0048 0049 return