RF Budget analyzer S2P file error: Index in position 1 exceeds array bounds (must not exceed 1)
2 views (last 30 days)
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;
Sourabh Joshi on 5 Aug 2021
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.