This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function yBus = Y_Bus_Assembly_Singular() | |
% Data from IEEE 5-bus Data | |
% "http://shodhganga.inflibnet.ac.in/bitstream/10603/26549/14/14_appendix.pdf"" | |
lineData = csvread('Y_Bus_Data.csv', 1, 0); | |
% Calculate the number of lines in the line data | |
lines = length(lineData); | |
% Calculate the number of buses in the line data | |
buses = max(max(lineData(:,2)),max(lineData(:,3))); | |
% Calculate the line admittance by taking element by element inverse | |
lineAdmittance = lineData(:,4).^-1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function yBus = Y_Bus_Assembly_Direct() | |
% Data from IEEE 5-bus Data | |
% "http://shodhganga.inflibnet.ac.in/bitstream/10603/26549/14/14_appendix.pdf"" | |
lineData = csvread('Y_Bus_Data.csv', 1, 0); | |
% Calculate the number of lines in the line data | |
lines = length(lineData); | |
% Calculate the number of buses in the line data | |
buses = max(max(lineData(:,2)),max(lineData(:,3))); | |
% Calculate the line admittance by taking element by element inverse | |
lineAdmittance = lineData(:,4).^-1; |
NewerOlder