필터 지우기
필터 지우기

How do I export 8 lists of S-parameters into one s2p file?

조회 수: 10 (최근 30일)
Julius
Julius 2022년 9월 6일
댓글: Julius 2022년 9월 6일
Hello, i have a Program, that measures all the S-Parameters of a 2 Port Network Analyzer and I want to export the data in the s2p format.
The Data is split up in 8 Lists: S11 Imag(inary), S11 Real, S12 Imag, S12 Real, S21I, S21R, S22 I and S22R. Another list contains the Frequencies that get measured. Using python I want to export the data into the s2p format.
Any help would be greatly appreciated.

채택된 답변

Abderrahim. B
Abderrahim. B 2022년 9월 6일
편집: Abderrahim. B 2022년 9월 6일
Hi!
Using python I want to export the data into the s2p format . Assuming you wanted to say Using MATLAB.....
Use rfwrite, check learn below for more details:
  댓글 수: 1
Julius
Julius 2022년 9월 6일
Thank you for your fast answer!
rfwrite(data, freq, filename) is the function I will have to use, yes. But to be honest, i dont know how to fill in the Parameters. freq is obviusly the frequency, I can store them in my list of frequencies in the parameters of rfwrite. filename is also clear, but i dont know how to transform the data from 8 lists into the data parameter. Do i need to create a "mega list" with all the values and reference it as data? If yes, how?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by