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

1 visualizzazione (ultimi 30 giorni)
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
figure;
s = sparameters(antennaObject, freqRange);
freq = s.Frequencies;
sparameters= s.Parameters;
rfwrite(sparameters,freq,'sparam.s2p')
clear;
  1 Commento
Sriram Tadavarty
Sriram Tadavarty il 12 Mar 2020
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.
Regards,
Sriram

Accedi per commentare.

Risposte (1)

Sourabh Joshi
Sourabh Joshi il 5 Ago 2021
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.

Categorie

Scopri di più su Get Started with Antenna Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by