summaryrefslogtreecommitdiff
path: root/CTB/s_renorm.m
blob: 2d887e0c14a27e71debab821f2dd94ba4836af03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function s_new = s_renorm(s, Z, Z_new)
% s_new = s_renorm(s, Z, Z_new)
%
% scattering matrix renormalization
%
% input:
%   s:      scattering matrix nxnxf   (f: number of frequencies)
%   Z:      old reference impedance
%   Z_new:  new reference impedance
%
% output:
%   s:      renormalized scattering-matrix nxnxf
%
% Thorsten Liebig <thorsten.liebig@gmx.de>
% (c) Jan. 2014

z = s2z(s, Z);
s_new = z2s(z, Z_new);