File: s_renorm.m

package info (click to toggle)
openems 0.0.35%2Bdfsg.1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,288 kB
  • sloc: cpp: 40,259; yacc: 580; lex: 350; makefile: 258; sh: 169; ruby: 19
file content (19 lines) | stat: -rw-r--r-- 419 bytes parent folder | download | duplicates (3)
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);