fit S11to poles and zeros like in the article
조회 수: 3 (최근 30일)
이전 댓글 표시
Hello,In the article bellow they refer to a method of converting s1p file (attached as text into a pole zero model .
could you please show me how can i convert the S1P file into such model using matlab?
Thanks.

댓글 수: 0
답변 (1개)
Anudeep Kumar
2025년 7월 31일
Hey @fima v
I believe you can use various MATLAB functions as 'sparameters','rationalfit' based on your data to achieve your goal.
You can extract your Touchstone S-Parameter file using 'sparameters' as below
% Read the S1P file
sobj = sparameters('model_txt.txt'); % It is preferred the file is in .s1p or compatible format.
freq = sobj.Frequencies; % Frequency vector (Hz)
s11 = rfparam(sobj,1,1); % S11 parameter (complex)
Then depending on your corcuit you may need to convert S11 to impedance or admittance.
Using 'rationalfit' you can fit a rational fucntion to your data to get Poles and Zeros. Then based on the formula metioned in the attached article you can write a simple code to calculate 'Ms1' and 'M11' with your extracted Zeros and Poles.
I have hereby attached the documentations of the functions mentioned for your reference:
I have also attached some examples and tutorials provided by MATLAB on this topic which might be relevant and help you achieve your goal.
I hope this helps to some extent!
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!