Professional Documents
Culture Documents
Experiment No. 1
Objectives:
The objectives of this experiment is to write a code in MATLAB that reduces a user-inputted
bus impedance matrix using Kron reduction.
Introduction:
1
Methodology:
The entire content of the script is highlighted. Right click is done and Evaluate
Selection is clicked.
The command window will now ask the user for the number of buses. For this testing,
“3” is entered.
Next, the values for Zbus_old_11 until Zbus_old_33 is entered (total of 9 elements). For this
testing: 0.0704i, 0.1690i, -0.1972i, -0.4225i, -0.0141i, 0.1831i, 0.2394i, -0.2254i, and
-0.0704i are entered in order.
After the elements were entered, the Zbus_old matrix was displayed. Also the command
window will ask the user to press any key to proceed.
Lastly, the Zbus_new matrix was displayed.
2
Tabulated Data:
[
Z bus = −0.4225i −0.0141 i 0.1831i
old
Figure 1 shows the evaluation of the script/code. After entering “3” for the number of buses,
the command window asked for the values from Z 11 to Z33 (total of 9 elements). After
creating the Zbus_old matrix, the Zbus_new matrix was acquired by using Kron Reduction.
Conclusions:
The student was able to write a code in MATLAB that reduces a user-inputted bus impedance
matrix using Kron reduction. By primarily using a for loop to create the desired size of the
matrix, the user was able to input the elements for the Z bus_old matrix. The Zbus_old matrix was
then reduced using another for loop with the kron reduction formula implemented within it to
acquire the Zbus_new matrix.
3
Reflection:
I realized how important it is to refresh my programming skills once in a while. Even though
I am not extensively writing code, it is still very convenient when solving engineering
problems. By eliminating the manual labor required to compute data, I was able to focus on
actually analyzing the
Certification:
I hereby certify that all the statements contained in this report are true to the best of my
knowledge and belief. A document made by:
2/19/21
Julius Reiner L. Avenido
References:
[1] http://www.ece.mtu.edu/faculty/bamork/ee5240/KRON.pdf