20 lines
316 B
Mathematica
20 lines
316 B
Mathematica
|
|
function Mat_G=FormG(Volt,PVi,PGi,PG,QG)
|
|||
|
|
%t1=PG(PVi);
|
|||
|
|
%GP=t1;%<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>P
|
|||
|
|
%GP=[4.5 4.5]';
|
|||
|
|
%%<EFBFBD><EFBFBD>·
|
|||
|
|
%<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Q
|
|||
|
|
% t1=Volt'*Volt;
|
|||
|
|
% t2=real(GB).*sin(AngleIJMat)-imag(GB).*cos(AngleIJMat);
|
|||
|
|
% t3=t1.*t2;
|
|||
|
|
% t4=sum(t3,2);%<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Q
|
|||
|
|
%GQ=t4;
|
|||
|
|
Mat_G=[
|
|||
|
|
%GP;
|
|||
|
|
PG(PGi);
|
|||
|
|
QG(PVi);
|
|||
|
|
%GQ(PVi);
|
|||
|
|
%[0 1.45]';
|
|||
|
|
Volt';
|
|||
|
|
];
|
|||
|
|
end
|