How to use command "sparameters"?

조회 수: 7 (최근 30일)
Marco Wyss
Marco Wyss 2018년 3월 22일
편집: Sangeetha Balasubramaniyam 2023년 6월 19일
The idea:
1. Convert with the command rlgc2s the S-Parameters of a rlgc-transmission line. This seems to work: I get a 2x2 Matrix with the 4 S-Parameters (s11, s21, s12, s22).
2. Generate a S-Parameters-Object "sobj" with the command sparameters().
This doesn't work. Error: Not enough input arguments.
How can I generate a sobj with my 4 S-Parameters?
The matlab-help-side doesn't help me, maybe you can :-). Thank you very much!

답변 (1개)

Sangeetha Balasubramaniyam
Sangeetha Balasubramaniyam 2023년 6월 19일
편집: Sangeetha Balasubramaniyam 2023년 6월 19일
Hi Marco Wyss,
As per my understanding to your question, you have the complex s-parmeters data and you are looking to generate the sparameter object for the same. yes it is possible.
You can use sparameters() by passing sparams values as the first input argument and frequency as a second positional input argument, they are the required inputs to sparameter function. Please look at the example code below for more understanding.
length = 1e-3;
freq = 1e9;
z0 = 50;
R = 50;
L = 1e-9;
G = .01;
C = 1e-12;
s_params = rlgc2s(R,L,G,C,length,freq,z0);
% Get the sparams object
sobj = sparameters(s_params,freq)
sobj = sparameters(s_params,freq,z0)
You can refer to the following documentation to know more about sparameters().
Thanks,

카테고리

Help CenterFile 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!

Translated by