How do I write a S-Parameter Object into a excel file and do same for multiple S-Parameter objects?
5 次查看(过去 30 天)
显示 更早的评论
I have a folder which has a bunch of S-Parameter files. Right now I am reading each s-parameter file in a loop and adding them to an S-Parameter Object array. I do not know of any command that directly right S-Parameter data like S11(Amplitude and Phase vs. Frequency) into an Excel or CSV file.
And so I am have just doing my S-Parameter analysis operations in Excel. See below for the S-Parameter Object Creation Code.
listing = dir('DIR_NAME_WITH_S_PARAMETER_FILES');
cd 'DIR_NAME_WITH_S_PARAMETER_FILES';
write_file = 'EXCEL FILE PATH';
SZ = size(listing); % listing will return the number of files in the folder
% SZ will +2 bigger than the actual number of files in the folder
%step_size = rdivide(32,(SZ(1,1)-2)); % Step Size calculator
step_size = 0.5; % Define step size manually
for i = 1:SZ(1,1)-2 % Calculating Attenuation Steps
S(i) = sparameters(listing(i+2).name); % Create S object array for s-parameters
end
freq = S.Frequencies; % Extract Freq. array from the S
f = freq * 0.000000001; % Convert Freq into GHz
And So on So I was wondering if there is way to directly write the object S into a CSV or Excel by specifying the parameter like S11 or S21 etc and then repeat it for all the values of i.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import and Network Parameters 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!