Hi,

I'm trying to calculate Cap using Y parameter.

Cap should be calculated as follows;

YP=stoy(S)

Cap=1/imag(1/-Y12)/(2*PI*Freq)

where Y12=Y21

So I punch following equations to calculate Cap.

YP=stoy(Linear1_Data.S,Linear1_Data.ZPORT)

Cap=imag(-1/YP[1,2])./(2*PI*reshape(Linear1_Data.F,[201,1]))

But this doesn't calculate Cap correctly.

Probably extracting frequency(independent variable) from Linear1_Data.F is wrong.

What expression is correct to extract Freq and divide Y12?

Please advise me.

Ume

I'm trying to calculate Cap using Y parameter.

Cap should be calculated as follows;

YP=stoy(S)

Cap=1/imag(1/-Y12)/(2*PI*Freq)

where Y12=Y21

So I punch following equations to calculate Cap.

YP=stoy(Linear1_Data.S,Linear1_Data.ZPORT)

Cap=imag(-1/YP[1,2])./(2*PI*reshape(Linear1_Data.F,[201,1]))

But this doesn't calculate Cap correctly.

Probably extracting frequency(independent variable) from Linear1_Data.F is wrong.

What expression is correct to extract Freq and divide Y12?

Please advise me.

Ume

You're trying to make this too hard, in some ways.

First, GENESYS will autocalculate the Y (or YP) measurement for you automatically if you want (although your stoy equation line is correct). Next, there's no real need to reshape the F vector since it will match the Y vector correctly.

Here's what I used in the same vein as your desires (with the Bridge-T example):

using("Frequencies_Data")

cap= 1 / ( 2 * PI * F .* im(1/YP[1,2]) )

Regards,

Mark