Reading s2p file with power sweep at a certain frequency
Show older comments
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!
1 Comment
Vincent Occhiogrosso
on 19 Feb 2022
Did you ever find a solution?
Answers (1)
Carlos
on 28 Aug 2024
0 votes
I'm having the same issue. Any updates on these.
Categories
Find more on MATLAB in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!