Hi all--

I've been tasked with developing descriptive statistics on a population of actual parts using Genesys. (I know how to do it in Excel, but the Genesys environment seems a better choice for the engineers.)

Say I have ten or thirty *.s2p files for ten or thirty different samples-- how can I conveniently average the reals and the imaginaries for each of S11, S21, S12, S22? Does it have to be done element-wise, or can I operate on entire S-matrices at once?

(Assume we have the same number of rows and the same frequencies for all files.)

Thanks for reading...

I've been tasked with developing descriptive statistics on a population of actual parts using Genesys. (I know how to do it in Excel, but the Genesys environment seems a better choice for the engineers.)

Say I have ten or thirty *.s2p files for ten or thirty different samples-- how can I conveniently average the reals and the imaginaries for each of S11, S21, S12, S22? Does it have to be done element-wise, or can I operate on entire S-matrices at once?

(Assume we have the same number of rows and the same frequencies for all files.)

Thanks for reading...

If you want to mathematically average a bunch of s data files just use + to add two arrays together.

myS + myOtherSwill add the two arrays together element by element. Usually this would be written

.+to indicate 'element by element' but there's no array confusion with addition so you don't need the 'dot'.If you have the data in text form you may find it's easier to load it in one swoop and you can then just call the mean function on the entire array (take the mean along a one-dimensional slice of a multidimensional array). Take a look at importing data in the user's guide to see how to do that. This requires 2007.08 (which added 'mean' to the function list).

Regards,

Mark