makeYbus
- makeYbus(baseMVA, bus, branch)
makeYbus()- Builds the bus admittance matrix and branch admittance matrices.[YBUS, YF, YT] = MAKEYBUS(MPC) [YBUS, YF, YT] = MAKEYBUS(BASEMVA, BUS, BRANCH) Returns the full bus admittance matrix (i.e. for all buses) and the matrices YF and YT which, when multiplied by a complex voltage vector, yield the vector currents injected into each line from the "from" and "to" buses respectively of each line. Does appropriate conversions to p.u. Inputs can be a MATPOWER case struct or individual BASEMVA, BUS and BRANCH values. Bus numbers must be consecutive beginning at 1 (i.e. internal ordering).
See also
makeJac(),makeSbus(),ext2int().