S-parameter toolbox (+ Z, Y, H, G, ABCD, T)

Convert between N-port representations of RF circuits. Read / Write industry-standard files.
14.7K Downloads
Updated 29 May 2012

View License

Useful for the RF designer, it manipulates the various complex representations of the circuits as multi-ports, namely conversions from one representation to another as well as reading/writing from/to files in industry-standard format.

The (more oftenly used) transformations are singularity-protected; some legacy stuff could be done better today... and it is slowly getting done :-)!

The file parsing/writing in particular has been greatly improved thanks to the input received from the users on this site.

I hope this toolbox will help you when searching for that elusive insight when working at high frequencies !

Have fun !

p.s. any ideas ? bugs ? email me

Cite As

tudor dima (2024). S-parameter toolbox (+ Z, Y, H, G, ABCD, T) (https://www.mathworks.com/matlabcentral/fileexchange/6080-s-parameter-toolbox-z-y-h-g-abcd-t), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.5.0.0

2012.05.29
SXPWrite:
properly write long numbers in scientific notation
accept multi-line comments
accept more frequency units (before MHz only)
SXPParse:
close the parsed file

1.4.0.0

- added 3rd dimension (frequency)
to h2y, y2h, g2y, y2g, h2g,
- faster h2* and *2h conversions
- h2g (and its wrap, g2h) as
protected inverses

1.2.0.0

more separators allowed, file read speed improvement, better code flow

1.1.0.0

SXPParse revision : v.1.4, 2008.10.25
fix for the case nPort>4 (when lines get split)
allow comments on lines
allow various separators (tabs!)
better parsing, subfunctions introduced
limited protection for non-compliant files

1.0.0.0

- bug fixed in 'db' format conversion
- better help and better info on MDIF standard