Lorentzian Fitting with .s2p file

조회 수: 1 (최근 30일)
FRANCESCO MARINO
FRANCESCO MARINO 2021년 2월 4일
답변: Vimal Rathod 2021년 2월 10일
Good Morning,
I'm going to execute the Lorentzian Fitting with a .s2p file but I have no clue about how do do that....
Could anyone help me, please?
Thank You in Advance

답변 (1개)

Vimal Rathod
Vimal Rathod 2021년 2월 10일
Hi,
MATLAB handles Touchstone files as S-Parameter objects, which require RF Toolbox to be extracted. To get the data from the .s2p file, you would need to use "rfdata.data" function which returns S-Parameter data as output.
The following link has an example which shows how to get the data from. s2p file using the rfdata.data function.
You could use below script to get the data from the file.
file = 'default.s2p'; %name of the file
h = read(rfdata.data,file); % read data from .s2p file
s = h.S_Parameters; %this will have all the necessary data
The following link explains about S-parameter objects in RF toolbox.
Once the data is extracted according to your requirements, you could use lorentzfit function present in the following link.

카테고리

Help CenterFile Exchange에서 Downloads에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by