Using makepassive function for passivity correction

조회 수: 10 (최근 30일)
shaziah A
shaziah A 2019년 4월 10일
답변: shaziah A 2019년 4월 10일
I am trying to convert a non-passive touchstone file to a passive one using makepasive function and the code is as follow
S1 = sparameters('Sample_file.s2p');
ispassive(S1)
ans = 0;
S2 = makepassive(S1);
ispassive(S2)
ans = 1;
rfwrite(S2,'NewTouchstone.s2p');
S= sparameters('NewTouchstone.s2p')
ispassive(S2)
ans =0;
I believe the makepassive function converts all the parameters to passive ones and i also get a logical 1 after the conversion.
But after I write it into a touhstone file and do the passivity check again, it fails.
Can somebody help me to understand what might be going wrong.

답변 (1개)

shaziah A
shaziah A 2019년 4월 10일
I forgot to attach the touchstone file. I could not attach the snp format and hence have attached the text format, just change the extension to snp while downloading it.

카테고리

Help CenterFile Exchange에서 Frequency Domain Analysis에 대해 자세히 알아보기

제품


릴리스

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by