Bus Admittance Matrix 1
implement bus admittance matrix using matlab, java and python
Loading...
Searching...
No Matches
Functions | Variables
get_input.m File Reference

Functions

 y (i, j)
 

Variables

function yp
 Get impedance or admittance input from the user.
 
if choice
 
 yij = input('')
 

Function Documentation

◆ y()

y ( i  ,
 
)

Variable Documentation

◆ choice

end end elseif choice
Initial value:
== 1
%
for i = 1:n
for j = 1:n
fprintf("Enter the impedance between bus %d and %d: ", i, j)
No output end end end Calculate currents for i
Definition calculate_lineflow_loss.m:13
Print the table header fprintf('%-10s %-20s %-20s %-20s %-20s\n', headers{1}, headers{2}, headers{3}, headers{4}, headers{5})
n
Definition lineflow_loss.m:5

◆ yij

yij = input('')

◆ yp

end end end yp
Initial value:
= get_input(choice,n)
%
y = zeros(n, n)
if choice
Definition get_input.m:10
No output y
Definition lineflow_loss.m:11

Get impedance or admittance input from the user.

Parameters
choiceThe user's choice for input type : 1 for impedance, 2 for admittance
nThe number of buses
Returns
yp The admittance matrix