From e2d31ecf5d3f97af2f658b634b7d6eee04f2f445 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Tue, 19 Feb 2019 17:57:21 +0100 Subject: [PATCH] fix averaging bug in transmission line calc Signed-off-by: Thorsten Liebig --- matlab/calcTLPort.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/calcTLPort.m b/matlab/calcTLPort.m index 3a631ba..68912c6 100644 --- a/matlab/calcTLPort.m +++ b/matlab/calcTLPort.m @@ -91,7 +91,7 @@ end if ((strcmpi(port.type,'StripLine')==1) || (strcmpi(port.type,'CPW')==1)) 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; for n=1:3 U.TD{n}.val = U1.TD{n}.val+U2.TD{n}.val;