Get frequency from sparameter object
이전 댓글 표시
I have imported a touchstone file (s2p) to an sparameter object using sparameters function in RF Toolbox:
Example_s_param=sparameters('Example.s2p');
I want to get the frequency vector from Example_s_param. I can see it when using disp(Example_s_param) - then it returns:
NumPorts: 2
Frequencies: [1001×1 double]
Parameters: [2×2×1001 double]
Impedance: 50
I want to save the "Frequncies" in a new vector I can use to plot stuff. Somehow I cannot figure out how to do this.
댓글 수: 2
Dennis Hoffmann
2020년 3월 16일
its an object.
freq = Example_s_param.Frequencies;
Frederikke Johansson
2020년 3월 17일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Data Import and Network Parameters에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!