Borrar filtros
Borrar filtros

sparameters and rplot smooth curves

10 visualizaciones (últimos 30 días)
Alex EE
Alex EE el 27 de Feb. de 2023
Comentada: Sai Kiran el 7 de Mzo. de 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.

Respuestas (1)

Sai Kiran
Sai Kiran el 6 de Mzo. de 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 comentarios
Alex EE
Alex EE el 6 de Mzo. de 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 el 7 de Mzo. de 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.

Iniciar sesión para comentar.

Categorías

Más información sobre RF Toolbox en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by