
Added after 11 minutes: dingjingfeng said: you can find a function in the RF toolbox of Matlab. it only reads 1 port / 2 port network, I believe. Using the rational function fitting method, you can model backplanes, interconnects, and linear components, and export them as Simulink ® blocks, SPICE netlists, or Verilog ®-A modules for time-domain simulation. BigBoss said: Matlab imports tocuhstone formated s-parameter directly in RF Toolbox. First, import the scikit-rf module skrf, as rf. The variable s is a Numpy array of your scattering parameters, which shape is Nbf x 2 x 2, where Nbf is the number of frequency points defined in your file. ntwk rf.Network ('yourfile.s2p') s ntwk.s. If you are completely new to python, see scipy’s Getting Started. s2p file using scikit-rf and get the scattering parameters like that : import skrf as rf. The intended audience are those who have a working python stack, and are somewhat familiar with python. The RF Budget Analyzer app lets you analyze transceiver chains in terms of noise, power, and nonlinearity and generate RF Blockset™ models for circuit envelope simulation. This is a brief introduction to scikit-rf (aka skrf ). You can also de-embed, check, and enforce passivity, and compute group and phase delay. You can analyze S-parameters convert among S, Y, Z, T, and other network parameters and visualize RF data using rectangular and polar plots and Smith ® Charts. The toolbox provides functions for analyzing, manipulating, and visualizing RF data. Components can be specified using measurement data such as Touchstone files, network parameters, or physical properties.

RF Toolbox lets you build networks of RF components such as filters, transmission lines, matching networks, amplifiers, and mixers. BigBoss said: Matlab imports tocuhstone formated s-parameter directly in RF Toolbox. The toolbox supports wireless communications, radar, and signal integrity applications. RF Toolbox™ provides functions, objects, and apps for designing, modeling, analyzing, and visualizing networks of radio frequency (RF) components.
