sparameters and rplot smooth curves

10 views (last 30 days)
Alex EE
Alex EE on 27 Feb 2023
Commented: Sai Kiran on 7 Mar 2023
Hi,
Is there a way to apply a filter to smooth the curves of s-parameter data when using the functions sparameters and rfplot.
I found the answer below but was wonder if there is a simpler method of applying a filter to s-parameter data.
https://www.mathworks.com/matlabcentral/answers/203698-r2013a-rf-toolbox-how-do-i-smooth-the-parameters-of-an-s-parameter-object
Thank you.

Answers (1)

Sai Kiran
Sai Kiran on 6 Mar 2023
Hi,
The sparameters function doesn't include built-in functionality to smooth out the data, so in order to apply a filter to smooth the s-parameters data, additional processing steps are required.
We can use 'smoothdata' function or any user defined filters from DSP ToolBox. Please refer to the following documentations for more information.
I hope it helps!
Thanks
Sai Kiran Ratna
  2 Comments
Alex EE
Alex EE on 6 Mar 2023
Sai Kiran,
Thank you for the help. I am aware of filters function and should have been more detailed in my question.
When data is imported with the sparameter function it is held in a sparameter class variable. I was wondering if there is a way to directly apply a filter to this type of variable. Otherwise the the magnitude and angle needs to extracted from the complex number and copied to a matrix before the a filter can be applied. The filtered data has to then be converted back to a complex number and put back into a sparameter variable.
Thank you.
Sai Kiran
Sai Kiran on 7 Mar 2023
Hi,
The sparameters throws the results in the form of objects so you have to take out the data from it and do the processing. In built filters doesn't support different datatypes.
You have to extract the data from the sparameters and then pass it back to the filter for further processing.
I hope it clarifies your query.
Thanks.

Sign in to comment.

Categories

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

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!