Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Touchstone Format (Extracting Specific Frequency from S-Parameters]

Status
Not open for further replies.

felicia_1

Junior Member level 1
Joined
Jun 4, 2014
Messages
18
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
186
I can extract the S-parameters from touchstone file. However, it displays by column. What can I do if I want to extract certain frequency only (for example 1 GHz) and it will display its S-parameters automatically in Matlab?
 

Is this a question regarding Matlab syntax for matrix operations, or Touchstone syntax?
 

I can extract the S-parameters from touchstone file. However, it displays by column. What can I do if I want to extract certain frequency only (for example 1 GHz) and it will display its S-parameters automatically in Matlab?

Matlab syntax. Do you have any experience in extract certain specific frequency to display S-parameters in Matlab? (the frequency to be inserted will be decided by user).
 

the touchsotone file is a matrix, where the column 1 is the frequency, usually in MHz.

You would take the desired frequency, scan down the first column, until you find one row that is just below your frequency of interest, and the next row is just above your frequency of interes. I would then linearly average each s parameter data column and come up with the closes approximate data point.
 

the touchsotone file is a matrix, where the column 1 is the frequency, usually in MHz.

You would take the desired frequency, scan down the first column, until you find one row that is just below your frequency of interest, and the next row is just above your frequency of interes. I would then linearly average each s parameter data column and come up with the closes approximate data point.

thank you for the respond. Could you please provide simple example on this? I don't really get it.
 

Matlab syntax. Do you have any experience in extract certain specific frequency to display S-parameters in Matlab? (the frequency to be inserted will be decided by user).

felicia, I assume that you refere to the S-parameter functions in the Matlab RF toolbox? Sorry, I have no experience with that.

I think biff refers to the matrix and manual parsing of the file with homebrew code. However, the data in the Touchstone files has an extra number (frequency) for each frequency, so the overall data in the file isn't always readable as a matrix.

Only for S1P and S2P files, all data per frequency is in one line, which is easy to parse. For more ports, there are usually line breaks somehwere (no standard on the position of the line break). This gives different number of entries per line, because some lines include frequencies and the continued lines don't. This makes it a bit more complicated to parse the file.
 

If you want an answer, why don't you answer questions?
Do you want to read the file "manually" with your own code, or do you use a library with Touchstone reader code (e.g. Matlab RF toolbox)?
 

If you want an answer, why don't you answer questions?
Do you want to read the file "manually" with your own code, or do you use a library with Touchstone reader code (e.g. Matlab RF toolbox)?

Use library with touchstone reader code.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top