RF Budget analyzer S2P file error: Index in position 1 exceeds array bounds (must not exceed 1)

1 ビュー (過去 30 日間)
I am using the following code to generate the S-parameters of a dipole antenna and save in a .S2P file. I then want to use that file in the RF Budget analyzer for my Sparams block. However, when I load in the file I get the error "Index in position 1 exceeds array bounds (must not exceed 1)". Can anyone please help with this?
% Create a dipole antenna
% Generated by MATLAB(R) 9.7 and Antenna Toolbox 4.1.
% Generated on: 10-Mar-2020 17:55:46
%% Antenna Properties
% Design antenna at frequency 5900000000Hz
antennaObject = design(dipole,5900000000);
%% Antenna Analysis
% Define plot frequency
plotFrequency = 5900000000;
% Define frequency range
freqRange = (5310:59:6490) * 1e6;
% show for dipole
% s11 for dipole
s = sparameters(antennaObject, freqRange);
freq = s.Frequencies;
sparameters= s.Parameters;
  1 件のコメント
Sriram Tadavarty
Sriram Tadavarty 2020 年 3 月 12 日
Hi Ben,
I see that above is working as expected without any error. Can you once ensure that you are trying to save from the folder that has permissions? Also, you could even try alternate interface rfwrite(s,'sparam.s2p').
Let me know, if any of the two works.


回答 (1 件)

Sourabh Joshi
Sourabh Joshi 2021 年 8 月 5 日
Hello Ben,
Since the antenna is a One-Port device , the sparameters it generates are 1 port sparameters which are not accepted in the Budget Analyser App. It only accepts the two port networks. But if you want to use the antenna block in the budget analyser, then we have added this functionality in 2021a version and the documentation page for this is given below.
Using this block, you can design an antenna in the antenna designer app and import that into the RF Budget Analyser app.


Find more on Analysis, Benchmarking, and Verification in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by