MATLAB: Save S-parameter in matlab

create .s2p files-parameter

Hello,
I want to create S-parameter(.s2p) file in MATLAB.I have following information stored in matlab.
Freq–stored as 2650*1 double and SParameter–stored as 2650*4 complex double
–vinoth

Best Answer

1. You need to create an RF Data Object from your available data. Doc page is here;
2. Ensure that the dimensions of each of the properties of the RF Data Object match the standard dimensions. As a reference, use this:
orig_data=read(rfdata.data,'default.s2p')
3. Use the WRITE function as described here.
4. The References for the WRITE function as mentioned in the documentation page is EIA/IBIS Open Forum, "Touchstone File Format Specification," Rev. 1.1, 2002