s2rlgc errors with s16p input

8 views (last 30 days)
user8675309
user8675309 on 21 Jun 2022
Answered: Perdo on 23 Jun 2022
Hello,
I am using s2rlgc to convert measured S-parameters to RLGC matrices. When I pass the entire 16x16 S-parameter matrix to the s2rlgc function it returns the following error:
Error using s2rlgc_modified (line 295)
Cannot compute RLGC matrix for given data
The function works if I pass it a 2x2 subset of the S-parameter matrix, but anything larger returns the error.
E.g.:
output = s2rlgc(S_parameters(1:16,1:16,idx),length,freq) returns an error
but
output = s2rlgc(S_parameters(1:2,1:2,idx),length,freq) returns the RLGC values
Has anyone successfully used s2rlgc with a 4-port or larger dataset?
Thank you!

Answers (1)

Perdo
Perdo on 23 Jun 2022
s2rlgc only works for a 2-port network. You would need to break up your S-parameters into 2-port (s11, s12, s21, s22) and pass them separately in to the function.

Categories

Find more on Data Import and Network Parameters in Help Center and File Exchange

Tags

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!