2013-08-17 17:43:42 +08:00
|
|
|
|
function [ output_args ] = TransPower( newwordParameter,Volt,VAngel )
|
2013-04-22 21:56:16 +08:00
|
|
|
|
%TRANSPOWER Summary of this function goes here
|
|
|
|
|
|
% Detailed explanation goes here
|
|
|
|
|
|
transI=newwordParameter.trans.transI;
|
|
|
|
|
|
transJ=newwordParameter.trans.transJ;
|
2013-08-17 17:43:42 +08:00
|
|
|
|
transR=newwordParameter.trans.transR;
|
|
|
|
|
|
transX=newwordParameter.trans.transX;
|
2013-08-31 11:48:03 +08:00
|
|
|
|
transK=newwordParameter.trans.transK;
|
2013-04-22 21:56:16 +08:00
|
|
|
|
cmpSEV=Volt.*exp(1j*VAngel); %<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѹ
|
|
|
|
|
|
% cmpY=sparse(r,c,Y.*(1j*YAngel),length(Volt),length(Volt));
|
2013-08-31 11:48:03 +08:00
|
|
|
|
cmpSETransI=(cmpSEV(transI)./transK-cmpSEV(transJ)).*1./(transR+1j*transX);
|
|
|
|
|
|
output_args=real(cmpSEV(transI)./transK.*conj(cmpSETransI));
|
2013-04-22 21:56:16 +08:00
|
|
|
|
end
|
|
|
|
|
|
|