fix averaging bug in transmission line calc

Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
pull/51/head
Thorsten Liebig 2019-02-19 17:57:21 +01:00
parent 8908489c1f
commit e2d31ecf5d
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ end
if ((strcmpi(port.type,'StripLine')==1) || (strcmpi(port.type,'CPW')==1)) if ((strcmpi(port.type,'StripLine')==1) || (strcmpi(port.type,'CPW')==1))
U1 = ReadUI( port.U_filename(:,1), SimDir, f, UI_args{:} ); U1 = ReadUI( port.U_filename(:,1), SimDir, f, UI_args{:} );
U2 = ReadUI( port.U_filename(:,1), SimDir, f, UI_args{:} ); U2 = ReadUI( port.U_filename(:,2), SimDir, f, UI_args{:} );
U = U1; U = U1;
for n=1:3 for n=1:3
U.TD{n}.val = U1.TD{n}.val+U2.TD{n}.val; U.TD{n}.val = U1.TD{n}.val+U2.TD{n}.val;