+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Newbie level 3
    Points: 22, Level: 1

    Join Date
    Jul 2014
    Posts
    3
    Helped
    0 / 0
    Points
    22
    Level
    1

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

    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!

    •   AltAdvertisement

        
       

  2. #2
    Advanced Member level 5
    Points: 30,414, Level: 42
    BigBoss's Avatar
    Join Date
    Nov 2001
    Location
    Turkey
    Posts
    4,458
    Helped
    1340 / 1340
    Points
    30,414
    Level
    42

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

    Quote Originally Posted by Saly07 View Post
    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(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)
    Last edited by BigBoss; 21st July 2014 at 22:51.


    1 members found this post helpful.

    •   AltAdvertisement

        
       

  3. #3
    Newbie level 3
    Points: 22, Level: 1

    Join Date
    Jul 2014
    Posts
    3
    Helped
    0 / 0
    Points
    22
    Level
    1

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

    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?



--[[ ]]--