rf-toolbox, rfplot(), plot only at a given frequency?

10 views (last 30 days)
hi, im using rfplot() to plot my .s2p files. Lets say i have 100 of these .s2p files and i would like to plot the phase or magnitude at a certain frequency only. So basically i have many .s2p files and i would like to take only the data at a certain frequency out of every single s2p file and show the result in one plot.
I would like to see if at a certain frequency the magnitude stays the same/constant for a given period of time.
I have no idea how to accomplish this task so i reall appreciate every hint.
Thank you! :)

Answers (2)

Walter Roberson
Walter Roberson on 15 Jan 2016
You would need to read every file, extract the portion of the data you need and record it and throw the rest of the information from that file away.

Miroslav Lach
Miroslav Lach on 15 Jan 2016
Edited: Miroslav Lach on 15 Jan 2016
Hi,
thank you for your reply!
Would you be so kind and give me an example on how to actually "extract the portion"? Thats the part i can not figure out by myself.
How would i tell matlab to only read a certain line of the .s2p file at a given frequency?
I would really appreciate some help here as im stuck here. Thank you so much! :)

Community Treasure Hunt

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

Start Hunting!