JUK1
generatePRRFile.m File Reference

Go to the source code of this file.

Functions

function generatePRRFile (filePath, targetName) s2p
 
 fprintf (prrFile, "%d", 50)
 
 fprintf (prrFile, "\n%g %g\n", real(S(a, b).remainder), imag(S(a, b).remainder))
 
 fprintf (prrFile, "%g %g", real(S(a, b).poles(1)), imag(S(a, b).poles(1)))
 
end fprintf (prrFile, "\n%g %g", real(S(a, b).residues(1)), imag(S(a, b).residues(1)))
 

Variables

 freqSamples = s2p.Frequencies * 1e-9
 
 fitData = struct("poles", {}, "residues", {}, "remainder", {}, "proportional", {})
 
 S = repmat( fitData, s2p.NumPorts, s2p.NumPorts )
 
 prrFile = fopen( targetName, 'w' )
 
Find a complex rational model for freq domain data for a
 
for i
 

Function Documentation

◆ fprintf() [1/4]

fprintf ( prrFile  ,
"%d"  ,
50   
)

◆ fprintf() [2/4]

fprintf ( prrFile  ,
"%g %g"  ,
real(S(a, b).poles(1))  ,
imag(S(a, b).poles(1))   
)

◆ fprintf() [3/4]

end fprintf ( prrFile  ,
"\n%g %g"  ,
real(S(a, b).residues(1))  ,
imag(S(a, b).residues(1))   
)

◆ fprintf() [4/4]

fprintf ( prrFile  ,
"\n%g %g\n"  ,
real(S(a, b).remainder ,
imag(S(a, b).remainder  
)

◆ generatePRRFile()

function generatePRRFile ( filePath  ,
targetName   
)

Variable Documentation

◆ a

Find a complex rational model for freq domain data for a
Initial value:
= 1 : 1 : s2p.NumPorts
for b = 1 : 1 : s2p.NumPorts
[ S(a, b).poles, S(a, b).residues, S(a, b).remainder, S(a, b).proportional ] = findComplexRationalApproximation(freqSamples, squeeze(s2p.Parameters( a, b, : )) )
freqSamples
Find a complex rational model for freq domain data for a
b
Definition: getResidues.m:47

Definition at line 13 of file generatePRRFile.m.

◆ fitData

fitData = struct("poles", {}, "residues", {}, "remainder", {}, "proportional", {})

Definition at line 6 of file generatePRRFile.m.

◆ freqSamples

freqSamples = s2p.Frequencies * 1e-9

Definition at line 4 of file generatePRRFile.m.

◆ i

for i
Initial value:
= 2 : 1 : length( S(a, b).poles )
fprintf( prrFile, " %g %g", real( S(a, b).poles( i ) ), imag( S(a, b).poles( i ) ) )
Undo scaling of outgoing poles
fprintf(prrFile, "%d", 50)
prrFile
for i

Definition at line 19 of file generatePRRFile.m.

◆ prrFile

prrFile = fopen( targetName, 'w' )

Definition at line 9 of file generatePRRFile.m.

◆ S

S = repmat( fitData, s2p.NumPorts, s2p.NumPorts )

Definition at line 7 of file generatePRRFile.m.