Save S-parameter in matlab
74 次查看(过去 30 天)
显示 更早的评论
采纳的回答
Mark
2022-6-8
If you have freq and data variables of the appropriate size, use the rfwrite function in RF Toolbox:
>> size(freq)
ans =
202 1
>> size(data)
ans =
2 2 202
>> rfwrite(data,freq,'myfile.s2p')
alternatively you can use rfwrite on sparameters objects:
>> S = sparameters(data,freq)
S =
sparameters: S-parameters object
NumPorts: 2
Frequencies: [202×1 double]
Parameters: [2×2×202 double]
Impedance: 50
rfparam(obj,i,j) returns S-parameter Sij
>> rfwrite(S,'myfile2.s2p')
0 个评论
更多回答(1 个)
Abhishek Gupte
2011-12-7
2. Ensure that the dimensions of each of the properties of the RF Data Object match the standard dimensions. As a reference, use this:
orig_data=read(rfdata.data,'default.s2p')
4. The References for the WRITE function as mentioned in the documentation page is EIA/IBIS Open Forum, "Touchstone File Format Specification," Rev. 1.1, 2002
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Visualization and Data Export 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!