www.gusucode.com > rf 案例源码程序 matlab代码 > rf/WriteDataToTouchstoneFileExample.m

    %% Write Data to Touchstone File
% Aanalyze the data stored in the file |default.s2p| for
% a different set of frequency values, and use the |write| method
% to store the results in a file called |test.s2p|.
orig_data=read(rfdata.data,'default.s2p')
freq=[1:.1:2]*1e9;
analyze(orig_data,freq);
write(orig_data,'test.s2p')