优化稀疏化。删掉了很多注释。

Signed-off-by: facat <dmy@dmy-PC.(none)>
This commit is contained in:
facat
2012-05-24 21:06:34 +08:00
parent 9c5239bd1e
commit f2781393a7
11 changed files with 37 additions and 173 deletions

View File

@@ -1,4 +1,4 @@
function [G,B,GB,Y,r,c,Angle] = admmatrix(Busnum,Linei,Linej,Liner,Linex,Lineb,Transfori...
function [GB,Y,r,c,Angle] = admmatrix(Busnum,Linei,Linej,Liner,Linex,Lineb,Transfori...
,Transforj,Transforr,Transforx,Transfork0,Branchi,Branchb)
%**************************************************************************
% : Y
@@ -26,7 +26,7 @@ end
%%
GB = G+B.*1i; %
Y = abs(GB); %
Y=full(Y);
%Y=full(Y);
[r,c] = find(Y);
Angle = angle(GB(GB~=0)); %
%Angle=angle(GB);