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.

How to design a filter in MATLAB using the data from an S2P touchstone file

Status
Not open for further replies.

Saly07

Newbie level 3
Newbie level 3
Joined
Jul 21, 2014
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
19
Hi,

I have an S2P file of a SAW filter containing S-Parameters S11, S12, S21, S22.
I want to use these data to implement the filter in my MATALAB code.

Is there something like:

d = fdesign.bandpass(.......'S-PARAMETERS extracted from S2P file' ....);
Hd = design(d,'.....');

??????

Thank you very much in advance for your help!
 

Hi,

I have an S2P file of a SAW filter containing S-Parameters S11, S12, S21, S22.
I want to use these data to implement the filter in my MATALAB code.

Is there something like:

d = fdesign.bandpass(.......'S-PARAMETERS extracted from S2P file' ....);
Hd = design(d,'.....');

??????

Thank you very much in advance for your help!

Code:
sparameters

Create S-parameter object
Syntax
hs = sparameters(filename)example
hs = sparameters(hnet)example
hs = sparameters(data,freq)
hs = sparameters(__,Z0)
hs = sparameters(cktobj,freq,Z0)example
Description
example
hs = sparameters([COLOR="#40E0D0"]filename[/COLOR]) creates an S-parameter object hs by importing data from the Touchstone file specified by filename.

example
hs = sparameters([COLOR="#40E0D0"]hnet[/COLOR]) creates an S-parameter object from the RF Toolbox network parameter object hnet.

hs = sparameters([COLOR="#40E0D0"]data,freq[/COLOR]) creates an S-parameter object from the S-parameter data, data, and frequencies, freq.

hs = sparameters(__,[COLOR="#40E0D0"]Z0[/COLOR]) creates an S-parameter with reference impedance of Z0.

example
hs = sparameters([COLOR="#40E0D0"]cktobj,freq,Z0[/COLOR]) calculates the S-parameters of a circuit object.

Examples

Extract and Plot the S-parameters of a File
Extract S-parameters from file default.s2p and plot it.

S = sparameters([COLOR="#EE82EE"]'default.s2p'[/COLOR]);
disp(S)
rfplot(S)
 
Last edited:
Thank you BigBoss for your response.
The thing is that I don't want to just extract and plot S-parameters, I actually want to implement the S2P file in my matlab code (if it is possible) or somehow use this file in order to filter the data I generate by a code line.

Any clue please?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top