Clear Filters
Clear Filters

Plotting the Impedance from the s2p file (in time domain)

4 views (last 30 days)
I am using the RF Toolbox package in Matlab. I have an s2p file, and I want to plot the Impedance graph. I am currently using the following lines of code:
file1 = sparameters(A.s2p);
Impedance.Parameters = s2z(file1.Parameters, 50);
Impedance1(:) = abs(Impedance.Parameters(1,1,:))
plot(Impedance1)
The problem in this method is that the I am using 'plot' function. Do we have something similar to 'rfplot' where it plots the frequency or time on the x-axis automatically? Also, if i write the code in this way, I do see the impedance plot close to 50 ohms, but not exactly as I would have expected (I would have expected some high rise bumps at the inline connectors which the plot doesn't reflect). Any help in this matter will be greatly appreciated.
Thank You.

Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!