16 lines
253 B
Mathematica
16 lines
253 B
Mathematica
|
|
function Mat_G=FormGstate1(I1r,I1i)
|
|||
|
|
%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=[
|
|||
|
|
I1r;
|
|||
|
|
I1i;
|
|||
|
|
];
|
|||
|
|
end
|