function Z=lineimpedance()
%% line impedance
z721 = [ 0.2926+1j*0.1973   0.0673-1j*0.0368   0.0337-1j*0.0417
         0.0673-1j*0.0368   0.2646+1j*0.1900   0.0673-1j*0.0368
         0.0337-1j*0.0417   0.0673-1j*0.0368   0.2926+1j*0.1973 ];% ohm per mile
     
     
z722 = [ 0.4751+1j*0.2973   0.1629-1j*0.0326   0.1234-1j*0.0607
         0.1629-1j*0.0326   0.4488+1j*0.2678   0.1629-1j*0.0326
         0.1234-1j*0.0607   0.1629-1j*0.0326   0.4751+1j*0.2973 ];% ohm per mile
     
z723 = [ 1.2936+1j*0.6713   0.4871+1j*0.2111   0.4585+1j*0.1521
         0.4871+1j*0.2111   1.3022+1j*0.6326   0.4871+1j*0.2111
         0.4585+1j*0.1521   0.4871+1j*0.2111   1.2936+1j*0.6713 ];% ohm per mile
     
z724 = [ 2.0952+1j*0.7758   0.5204+1j*0.2738   0.4926+1j*0.2123
         0.5204+1j*0.2738   2.1068+1j*0.7398   0.5204+1j*0.2738
         0.4926+1j*0.2123   0.5204+1j*0.2738   2.0952+1j*0.7758 ];% ohm per mile

z725 = [ 1.6033 + 1j*1.3873   0   0
         0   1.6033 + 1j*1.3873   0
         0   0   1.6033 + 1j*1.3873 ];% primary % ohm per mile
     
z726 = [ 1.10888 + 1j*0.2357   0   0
         0   1.10888 + 1j*0.2357   0
         0   0   1.10888 + 1j*0.2357 ]*((4800/sqrt(3))/240);%secondary % ohm per mile

z727 = [ 3.456 + 1j*3.31776   0   0
         0   3.456 + 1j*3.31776   0
         0   0   3.456 + 1j*3.31776 ];%Transformer Impedance in ohm
     
Z = {z721;z722;z723;z724;z725;z726;z727};