Reading s2p file with power sweep at a certain frequency

I wonder if there is anyway to import s2p file to Matlab (similar to the command "sparameters('filename.s2p')")
But this time I'm measuring the S-parameters while I'm sweeping the power at a certain frequency (unlike the usual s-parameters where you sweep the frequency at a certain power)
When I try to run this command
sparameters('860.s2p')
I get this error
Error using rf.file.touchstone.Data/read
In the Touchstone format, frequency data must be non-negative and
increasing.
Error in rf.file.touchstone.Data
Error in rf.internal.netparams.AllParameters/readRFFile
Error in rf.internal.netparams.AllParameters
Error in rf.internal.netparams.ScatteringParameters
Error in sparameters (line 80)
obj =
obj@rf.internal.netparams.ScatteringParameters(varargin{:});
The s2p file is attached and here is a sample of the first lines of the s2p file
!S2P File: Measurements: S11, S21, S12, S22:Power Sweep
# Hz S dB R 50
-25 -7.2184515 -54.525898 -200 45 -200 45 -200 45
-24.99625 -7.2030401 -54.556015 -200 45 -200 45 -200 45
-24.9925 -7.210341 -54.558491 -200 45 -200 45 -200 45
Your help is appreciated!
Thanks in advance!

Answers (1)

I'm having the same issue. Any updates on these.

Categories

Find more on MATLAB in Help Center and File Exchange

Products

Asked:

on 2 May 2020

Answered:

on 28 Aug 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!