Hi Code Questions Answer Exam Code Want Explanation Row Row Exclusively Main Code Need Inf Q43809221
hi this is the code of the questions answer but I have a examfrom this code and I want a explanation row by row exclusively formain code and I need info about y-bus
![Main Code clc clear all data14 %% loading the data [busno, buscol]=size (busdata); [lineno,linecol]=size(linedata); *Form YBU](https://media.cheggcdn.com/study/b67/b677a57d-9e98-40bc-a7b1-44403a410d77/image.png)


linedata=(1 12.01938 .05917 .0264 1; 2 2 3 .04699 .19797 .0219 1; 324.05811 .17632 .0187 1; 4 15.05403 .22304 .0246 1; 5 25.05695.17388 .0170 1; 6 34.06701 .17103 .0173 1; 7.45 .01335.04211 .0064 1; 85 6 0.252020.932; 9 4 7 0.20912 0.978; 10 7 80.17615 O 1; 11 4 90.55618 0 .969; 12 79 0.11001 01; 13 9 10 .03181 .08450 0 1; 14 6 11 .09498 .19890 O 1; 15 6 12.12291 .25581 0 1; 16 6 13.06615 .13027 0 1; 17 9 14.12711 .27038 O 1; 18 10 11 .08205 .19207 O 1; 19 12 13 .22092.19988 01; 20 13 14 .17093 .34802 0 1]; busdata=[1 1 1.06 O OOOOO 0; 2 3 1.045 .217.127.40 0 -.4 .5 0; 3 3 1.010 .942 .190 00 -.0.4 0; 4 2 1.478 -.039 0 0 0 0 0; 5 2 1.076 .016 0 0 0 0 0; 6 3 1.07.112.075 0 0 -.06.24 0; 7 2 1 0 0 0 0 0 0 0; 8 3 1.09 O OOO -.06.24 0; 9 2 1 .295.166 0 0 0 0 .19; 10 2 1 09.058 0 0 0 0 0; 11 2 1 .035 .018 0 0 0 0 0; 12 2 1.061 .016 0 0 0 0 0; 13 2 1 .135.058 0 0 0 0 0; 14 2 1 .149 .05 0 0 0 0 0); I created an data folder that I can call in my main code easily without changing the main data. Main Code clc clear all data14 %% loading the data [busno, buscol]=size (busdata); [lineno,linecol]=size(linedata); *Form YBUS : ybus (busno, busno)=0; for(i=1:lineno) busl=linedata(i, 2); $To bus number. bus2=linedata(i,3); Resistance,r. z=linedata(i, 4)+*linedata(1,5); $Formation of Z matrix ysh=linedata(i,6); $shunt admitance/ground admitance, ysh. ts=linedata(i,7); ts2=ts*ts; y=1/2; ybus (busi, bus1)=ybus (busi, bus1)+jysh+(1/ts2)*y; ybus (bus2, bus2 )-ybus (bus2, bus 2 )+j*ysh+y; ybus (bus1, bus 2 )=ybus (bus1, bus2 )-(1/ts)*y; ybus (bus2, bus1 )=ybus (bus1, bus2); end 8Add Shunt capacitance : for(i=1:busno) ybus(i, i)=ybus(i, i)+j*busdata(i, 10); end ybus Construct the Y_bus matrix of a given power network by computer programming, preferably MATLAB. Note that the necessary data are available in the IEEE common data format; and as the working data, you can use the IEEE 14-bus system data. 9703 VW ARCHIVE BUS DATA FOLLOWS 2 1 9 1 1 1 3.1 1.053 1 1 100.5 1984 W ILLE uy Test Case 14 ITEMS 3 1.060 0.0 2 1.045 -4.75 21.1 21.00-12.77 0.0 01.019 -10.33 37. 01.020 – 1.6 2 L C20 -14.22 01.062-13.32 0 . 0 0.0 50.0 40.9 40.0 0.0 0.0 40.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 21,4 0.0 0.0 12.2 0.0 24.0 LV XV 1 1 3.0 0.0 2.0 3.0 3.0 3.0 3.0 0.0 3.0 1.010 0.0 0.0 1.079 0.0 1.093 0.0 0.0 0.0 26.0 0.0 29.5 9.0 0.0 0.0 9. 9.0 0.0 0.0 0.0 5.6 0.0 0.0 0.19 0.0 0.0 IV 1 1 0 1.056 -14.94 01.051 -15.10 LV1 23. CST -16.79 31.055 – 13.02 1 5 1.050 – 15.16 1 21.036 -1.04 LV 1.6 14.4 3.0 3.0 0.0 0.0 0.0 0.9 0.0 0.0 DRANGU WATA YULLOW 0.01990.09 20 9.0528 0.1492 0000.0 0.0 0.0 0.0 3.0 0.0 0.0 0 2 . 0 0 . 0 0.0240 0.036 0.0126 0 0 0 0 0.0 0.0 0.0 0.0 .0 0.0 0.0 0.00 0.0 0.0 0.0 0.0 0 .0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2600 61600 . 0. 0.0 3.1 0.0 0.0 0.1979 0.05811 0.17612 0 0.05 695 0.17386 0 0.062910.1710) 0.01 0.04211 0.20912 0.11 0.25202 0 0.09490 0.19090 100.1229 0.25501 0.06615 0.13027 0.17615 0.11001 1 0.03181 0.03450 110 0.12711 0.27036 190.08295 0.1920? 1 0 0.22092 0.1998 113 0.17393 0.34802 00 0.0 0.0 0. 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 0.0 00 0.0 0.0 0.0 0.0 3.0 13 1 0.0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 0.0 0.0 1 0.0 0.0 0.0 LOSS BONES POLLOWS 1 IEEE 10 BUS 1 ITEKS INTERCHANCE DMSA FOLLOWS 1 ITEMS 2 Hus 2 HV 0.3 999.99 TERR14 TEPR 14 Bus Taat Casa 0 ITENS TIL LIHLS FOLLOWS -999 END DE DITA SIE- O O OOOO he d Show transcribed image text linedata=(1 12.01938 .05917 .0264 1; 2 2 3 .04699 .19797 .0219 1; 324.05811 .17632 .0187 1; 4 15.05403 .22304 .0246 1; 5 25.05695.17388 .0170 1; 6 34.06701 .17103 .0173 1; 7.45 .01335.04211 .0064 1; 85 6 0.252020.932; 9 4 7 0.20912 0.978; 10 7 80.17615 O 1; 11 4 90.55618 0 .969; 12 79 0.11001 01; 13 9 10 .03181 .08450 0 1; 14 6 11 .09498 .19890 O 1; 15 6 12.12291 .25581 0 1; 16 6 13.06615 .13027 0 1; 17 9 14.12711 .27038 O 1; 18 10 11 .08205 .19207 O 1; 19 12 13 .22092.19988 01; 20 13 14 .17093 .34802 0 1]; busdata=[1 1 1.06 O OOOOO 0; 2 3 1.045 .217.127.40 0 -.4 .5 0; 3 3 1.010 .942 .190 00 -.0.4 0; 4 2 1.478 -.039 0 0 0 0 0; 5 2 1.076 .016 0 0 0 0 0; 6 3 1.07.112.075 0 0 -.06.24 0; 7 2 1 0 0 0 0 0 0 0; 8 3 1.09 O OOO -.06.24 0; 9 2 1 .295.166 0 0 0 0 .19; 10 2 1 09.058 0 0 0 0 0; 11 2 1 .035 .018 0 0 0 0 0; 12 2 1.061 .016 0 0 0 0 0; 13 2 1 .135.058 0 0 0 0 0; 14 2 1 .149 .05 0 0 0 0 0); I created an data folder that I can call in my main code easily without changing the main data.
Main Code clc clear all data14 %% loading the data [busno, buscol]=size (busdata); [lineno,linecol]=size(linedata); *Form YBUS : ybus (busno, busno)=0; for(i=1:lineno) busl=linedata(i, 2); $To bus number. bus2=linedata(i,3); Resistance,r. z=linedata(i, 4)+*linedata(1,5); $Formation of Z matrix ysh=linedata(i,6); $shunt admitance/ground admitance, ysh. ts=linedata(i,7); ts2=ts*ts; y=1/2; ybus (busi, bus1)=ybus (busi, bus1)+jysh+(1/ts2)*y; ybus (bus2, bus2 )-ybus (bus2, bus 2 )+j*ysh+y; ybus (bus1, bus 2 )=ybus (bus1, bus2 )-(1/ts)*y; ybus (bus2, bus1 )=ybus (bus1, bus2); end 8Add Shunt capacitance : for(i=1:busno) ybus(i, i)=ybus(i, i)+j*busdata(i, 10); end ybus
Construct the Y_bus matrix of a given power network by computer programming, preferably MATLAB. Note that the necessary data are available in the IEEE common data format; and as the working data, you can use the IEEE 14-bus system data.
9703 VW ARCHIVE BUS DATA FOLLOWS 2 1 9 1 1 1 3.1 1.053 1 1 100.5 1984 W ILLE uy Test Case 14 ITEMS 3 1.060 0.0 2 1.045 -4.75 21.1 21.00-12.77 0.0 01.019 -10.33 37. 01.020 – 1.6 2 L C20 -14.22 01.062-13.32 0 . 0 0.0 50.0 40.9 40.0 0.0 0.0 40.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 21,4 0.0 0.0 12.2 0.0 24.0 LV XV 1 1 3.0 0.0 2.0 3.0 3.0 3.0 3.0 0.0 3.0 1.010 0.0 0.0 1.079 0.0 1.093 0.0 0.0 0.0 26.0 0.0 29.5 9.0 0.0 0.0 9. 9.0 0.0 0.0 0.0 5.6 0.0 0.0 0.19 0.0 0.0 IV 1 1 0 1.056 -14.94 01.051 -15.10 LV1 23. CST -16.79 31.055 – 13.02 1 5 1.050 – 15.16 1 21.036 -1.04 LV 1.6 14.4 3.0 3.0 0.0 0.0 0.0 0.9 0.0 0.0 DRANGU WATA YULLOW 0.01990.09 20 9.0528 0.1492 0000.0 0.0 0.0 0.0 3.0 0.0 0.0 0 2 . 0 0 . 0 0.0240 0.036 0.0126 0 0 0 0 0.0 0.0 0.0 0.0 .0 0.0 0.0 0.00 0.0 0.0 0.0 0.0 0 .0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2600 61600 . 0. 0.0 3.1 0.0 0.0 0.1979 0.05811 0.17612 0 0.05 695 0.17386 0 0.062910.1710) 0.01 0.04211 0.20912 0.11 0.25202 0 0.09490 0.19090 100.1229 0.25501 0.06615 0.13027 0.17615 0.11001 1 0.03181 0.03450 110 0.12711 0.27036 190.08295 0.1920? 1 0 0.22092 0.1998 113 0.17393 0.34802 00 0.0 0.0 0. 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 0.0 00 0.0 0.0 0.0 0.0 3.0 13 1 0.0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 0.0 0.0 1 0.0 0.0 0.0 LOSS BONES POLLOWS 1 IEEE 10 BUS 1 ITEKS INTERCHANCE DMSA FOLLOWS 1 ITEMS 2 Hus 2 HV 0.3 999.99 TERR14 TEPR 14 Bus Taat Casa 0 ITENS TIL LIHLS FOLLOWS -999 END DE DITA
SIE- O O OOOO he d
Expert Answer
Answer to hi this is the code of the questions answer but I have a exam from this code and I want a explanation row by row exclusi…
OR