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

 z (i, j) = input('')
 

Variables

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

Function Documentation

◆ z()

z ( i  ,
 
) = input('')

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

◆ yp

end end end yp
Initial value:
= get_input(choice,n)
%
z = zeros(n,n)
if choice
Definition get_input.m:10
z(i, j)

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

◆ zij

zij = input('')