# s parameter matrix analysis for 2 port network

Discussion in 'Homework Help' started by kua022, Oct 26, 2010.

1. ### kua022 Thread Starter New Member

Oct 26, 2010
2
0
Dear,

Can you please provide me an example of matlab codes for the matrix analysis.

Best Regards
Kafil

2. ### Papabravo Expert

Feb 24, 2006
11,079
2,158
I'm not sure what you are asking. Matlab has built-in functions for doing most of the things you might want to do with a matrix. When it comes to s-parameters you seldom have a single matrix with constant values. What you have is a matrix where each element is a non-trivial function of frequency. In practice we characterize devices across a frequency range of interest and use that information from individual elements of the s-parameter matrix to design circuits.

I suppose there might be some use to matrix operations if you could figure out a way to represent the data appropriately. It's beyond my capability.

3. ### kua022 Thread Starter New Member

Oct 26, 2010
2
0
in matlab if i would like to write the follwing equation then how would i write..please help..
S22=i/2(1/z -z)sin(nkd)

S21= 1/kd cos^-1(I meant cos inverse)

4. ### Papabravo Expert

Feb 24, 2006
11,079
2,158
That's pretty much the way you write thins with appropriate definitions for z, n, k and d. There is no implied multiplication, and if they are vectors then the result is also a vector.