8 lines
106 B
Mathematica
8 lines
106 B
Mathematica
|
|
function Mat_G=FormG(Volt,PD,QD,Loadi)
|
||
|
|
|
||
|
|
Mat_G=[
|
||
|
|
sparse(PD);
|
||
|
|
sparse(QD);
|
||
|
|
% Volt;
|
||
|
|
];
|
||
|
|
end
|