How to design a filter in MATLAB using the data from an S2P touchstone file
时间:04-05
整理:3721RD
点击:
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!
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(filename) creates an S-parameter object hs by importing data from the Touchstone file specified by filename.
example
hs = sparameters(hnet) creates an S-parameter object from the RF Toolbox network parameter object hnet.
hs = sparameters(data,freq) creates an S-parameter object from the S-parameter data, data, and frequencies, freq.
hs = sparameters(__,Z0) creates an S-parameter with reference impedance of Z0.
example
hs = sparameters(cktobj,freq,Z0) 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('default.s2p');
disp(S)
rfplot(S)
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?
