a00=[ ... 
    20.23    inf    inf    inf    inf    inf    inf
    21.59    36.00    inf    inf    inf    inf    inf
    15.96    36.15    38.40    inf    inf    inf    inf
    17.65    37.89    38.59    37.75    inf    inf    inf
    22.65    38.20    39.79    37.20    26.73    inf    inf
    inf    38.60    39.98    38.95    28.38     7.28    inf
    inf    inf    41.41    39.15    32.84     7.71     2.16
    inf    inf    inf    40.06    33.60    10.65     2.57
    inf    inf    inf    inf    35.34    13.31     3.53
    inf    inf    inf    inf    inf    20.75     5.12
    inf    inf    inf    inf    inf    inf     7.46
];
a01=[ ... 
    18.76    inf    inf    inf    inf    inf    inf
    19.23    31.50    inf    inf    inf    inf    inf
    11.37    30.55    30.17    inf    inf    inf    inf
    12.67    29.78    29.01    26.64    inf    inf    inf
    18.29    30.61    29.82    26.24    17.87    inf    inf
    inf    31.58    30.35    28.03    19.60     5.83    inf
    inf    inf    33.82    28.98    22.60     6.26     2.03
    inf    inf    inf    31.97    24.30     8.58     2.06
    inf    inf    inf    inf    27.18     9.74     4.17
    inf    inf    inf    inf    inf    15.47     5.01
    inf    inf    inf    inf    inf    inf     6.12
];
a02=[ ... 
    34.18    inf    inf    inf    inf    inf    inf
    33.63    40.25    inf    inf    inf    inf    inf
    34.19    38.70    41.34    inf    inf    inf    inf
    36.58    40.30    40.22    40.03    inf    inf    inf
    38.69    40.67    41.52    38.89    28.39    inf    inf
    inf    41.14    41.79    40.65    29.83     7.71    inf
    inf    inf    43.06    40.99    34.74     8.20     2.50
    inf    inf    inf    41.95    35.74    11.51     2.95
    inf    inf    inf    inf    37.58    14.74     4.08
    inf    inf    inf    inf    inf    23.39     6.22
    inf    inf    inf    inf    inf    inf     9.77
];
a05=[ ... 
    21.03    inf    inf    inf    inf    inf    inf
    25.27    27.31    inf    inf    inf    inf    inf
    16.49    30.64    28.80    inf    inf    inf    inf
    17.13    27.12    31.99    29.84    inf    inf    inf
    24.17    25.80    29.67    29.18    21.63    inf    inf
    inf    27.54    27.83    30.48    20.58     6.23    inf
    inf    inf    31.56    29.49    25.06     5.99     1.48
    inf    inf    inf    30.48    24.69     9.13     2.40
    inf    inf    inf    inf    26.62     9.66     2.94
    inf    inf    inf    inf    inf    16.54     3.47
    inf    inf    inf    inf    inf    inf     5.93
];
a06=[ ... 
    15.20    inf    inf    inf    inf    inf    inf
    18.64    26.62    inf    inf    inf    inf    inf
    19.68    28.31    28.70    inf    inf    inf    inf
    19.74    29.63    29.66    29.06    inf    inf    inf
    19.65    32.00    32.08    29.10    18.32    inf    inf
    inf    33.50    31.33    31.93    20.89     4.90    inf
    inf    inf    35.76    31.97    25.36     5.24     1.38
    inf    inf    inf    34.12    25.95     7.24     1.70
    inf    inf    inf    inf    29.15     9.24     2.34
    inf    inf    inf    inf    inf    14.99     3.56
    inf    inf    inf    inf    inf    inf     4.67
];
a07=[ ... 
    29.17    inf    inf    inf    inf    inf    inf
    29.16    33.94    inf    inf    inf    inf    inf
    25.56    33.73    34.23    inf    inf    inf    inf
    24.08    33.14    34.39    32.90    inf    inf    inf
    29.53    30.54    33.35    30.90    22.23    inf    inf
    inf    32.82    31.51    31.16    22.34     6.76    inf
    inf    inf    34.93    29.50    24.62     6.09     2.46
    inf    inf    inf    32.71    25.75     8.63     2.65
    inf    inf    inf    inf    28.77     9.75     4.12
    inf    inf    inf    inf    inf    15.76     4.95
    inf    inf    inf    inf    inf    inf    11.67
];
a10=[ ... 
    17.99    inf    inf    inf    inf    inf    inf
    17.68    25.67    inf    inf    inf    inf    inf
    12.18    21.63    26.96    inf    inf    inf    inf
    10.73    15.03    21.53    25.48    inf    inf    inf
    12.43    11.87    16.97    19.78    15.41    inf    inf
    inf    11.84    14.70    18.38    13.91     3.48    inf
    inf    inf    13.17    16.48    14.71     3.13     0.66
    inf    inf    inf    12.58    12.30     3.98     0.74
    inf    inf    inf    inf     8.85     4.23     1.29
    inf    inf    inf    inf    inf     3.87     1.36
    inf    inf    inf    inf    inf    inf     1.01
];
a11=[ ... 
    17.35    inf    inf    inf    inf    inf    inf
    17.23    29.73    inf    inf    inf    inf    inf
    10.43    29.15    30.21    inf    inf    inf    inf
    10.70    28.82    28.24    27.59    inf    inf    inf
    14.33    29.33    27.65    25.76    18.55    inf    inf
    inf    30.58    29.37    27.62    20.68     4.98    inf
    inf    inf    30.51    28.94    24.23     4.93     1.02
    inf    inf    inf    28.61    24.40     8.41     1.19
    inf    inf    inf    inf    22.77    10.63     3.07
    inf    inf    inf    inf    inf    10.36     3.35
    inf    inf    inf    inf    inf    inf     3.14
];
a12=[ ... 
    21.13    inf    inf    inf    inf    inf    inf
    18.36    23.90    inf    inf    inf    inf    inf
    14.65    18.77    25.41    inf    inf    inf    inf
    10.00    12.21    19.64    24.04    inf    inf    inf
     9.17     9.10    14.95    18.16    13.83    inf    inf
    inf     8.09    12.35    16.18    11.95     2.79    inf
    inf    inf     9.60    13.55    11.75     2.48     0.65
    inf    inf    inf     8.61     8.66     2.55     0.70
    inf    inf    inf    inf     4.60     2.27     1.03
    inf    inf    inf    inf    inf     1.79     0.94
    inf    inf    inf    inf    inf    inf     0.56
];
a13=[ ... 
    15.49    inf    inf    inf    inf    inf    inf
    11.72    19.48    inf    inf    inf    inf    inf
     9.08    13.47    19.62    inf    inf    inf    inf
     5.71     8.33    13.00    18.55    inf    inf    inf
     3.40     5.75     9.04    11.77    13.11    inf    inf
    inf     4.60     6.36    12.11     9.32     6.61    inf
    inf    inf     6.49     9.17    10.13     1.34     7.86
    inf    inf    inf     6.41     7.25     3.70     0.30
    inf    inf    inf    inf     4.24     2.10     6.02
    inf    inf    inf    inf    inf     3.93     2.25
    inf    inf    inf    inf    inf    inf     6.82
];
a14=[ ... 
    23.43    inf    inf    inf    inf    inf    inf
    15.46    24.85    inf    inf    inf    inf    inf
    16.23    20.79    25.70    inf    inf    inf    inf
    13.27    15.90    20.01    23.01    inf    inf    inf
     3.89    13.44    15.85    16.76    15.09    inf    inf
    inf     5.57    13.75    14.49    11.91     5.98    inf
    inf    inf     7.64    11.99    11.41     3.90    11.01
    inf    inf    inf     6.81     8.75     4.15     3.41
    inf    inf    inf    inf     4.50     2.53     6.81
    inf    inf    inf    inf    inf     2.28     1.45
    inf    inf    inf    inf    inf    inf    10.08
];
a15=[ ... 
    15.89    inf    inf    inf    inf    inf    inf
    17.12    21.95    inf    inf    inf    inf    inf
    16.05    21.77    25.26    inf    inf    inf    inf
    14.24    18.03    22.78    24.22    inf    inf    inf
    15.37    17.52    20.17    21.32    15.72    inf    inf
    inf    20.00    20.51    21.43    15.79     4.01    inf
    inf    inf    22.26    20.74    17.25     3.75     0.84
    inf    inf    inf    19.74    15.58     5.43     1.50
    inf    inf    inf    inf    13.82     4.30     2.16
    inf    inf    inf    inf    inf     4.42     1.57
    inf    inf    inf    inf    inf    inf     1.04
];
a16=[ ... 
    10.56    inf    inf    inf    inf    inf    inf
    17.12    18.50    inf    inf    inf    inf    inf
    17.66    17.25    24.06    inf    inf    inf    inf
    15.64    21.00    21.13    24.41    inf    inf    inf
    17.02    17.61    21.85    20.71    15.16    inf    inf
    inf    21.75    22.82    23.52    15.68     3.59    inf
    inf    inf    23.90    23.35    17.82     3.30     0.57
    inf    inf    inf    20.11    15.71     4.20     0.66
    inf    inf    inf    inf    12.96     4.72     1.04
    inf    inf    inf    inf    inf     4.31     1.18
    inf    inf    inf    inf    inf    inf     0.83
];
a17=[ ... 
    23.26    inf    inf    inf    inf    inf    inf
    24.42    29.13    inf    inf    inf    inf    inf
    25.16    29.38    32.82    inf    inf    inf    inf
    24.01    27.59    30.38    31.86    inf    inf    inf
    25.27    27.69    29.73    28.73    23.73    inf    inf
    inf    28.72    29.87    29.71    22.65     6.68    inf
    inf    inf    30.68    29.51    25.04     5.53     1.49
    inf    inf    inf    27.32    24.05     7.99     1.48
    inf    inf    inf    inf    21.99     9.19     3.26
    inf    inf    inf    inf    inf    10.07     2.48
    inf    inf    inf    inf    inf    inf     1.96
];

sin    = [a01;a11];  
msp    = [a02;a12];
msplt6 = [zeros(11,7);a13];
msp617 = [zeros(11,7);a14];
msa    = [a05;a15];

rlabel2 = ['1950';'1960';'1970';'1980';'1990'];
clabel3 = ['15-24'; '25-34'; '35-44'; '45-54'; '55-64'; '65-74'; '75-84'];
rlabel1 = 'Year';

tem=zeros(5,7);
for i=0:1;
  for j=1:7;

    if ~(i==0 & j>=3 & j<=4);
      for k=1:5; 
        eval(['tem(k,:)=diag(a',int2str(i),int2str(j),',-5+k)'';']); 
      end;
      textab1(tem,2,0,0,0,clabel3,rlabel1,rlabel2,0)
    end
  end;
end;

