Missing function in the Antenna Toolbox?

Hi,
I was trying the example in the Help center
However, they refer to a function that does not exist, see below
Unrecognized function or variable 'helperAnimateEHFields'.
Does this function actually exist somewhere...?

Réponses (1)

Steven Lord
Steven Lord le 26 Mar 2023

0 votes

Open the example using the command that gets copied to the clipboard when you press the Copy Command button at the start of the example. When you do the helper function that was created specifically as part of that example will be available in the current directory. It is not on the MATLAB search path normally.

5 commentaires

Maria
Maria le 28 Mar 2023
Strange, when I copy and paste the command, the mxl file does not use the function helperAnimateEHFields neither I can find it in current directory.
Oliver
Oliver le 9 Jan 2024
Same here.
At https://de.mathworks.com/help/antenna/ug/modeling-resonant-coupled-wireless-power-transfer-system.html the visualization with function call helperAnimateEHFields() is included.
With openExample('antenna/atx_wireless_power_transfer') the visualization is missing.
Same for a related Example:
With openExample('antenna/AnalyzeLinearHornArrayFedCylindricalReflectorExample') the visualization part is taken out.
Is there any reason for that?
Steven Lord
Steven Lord le 9 Jan 2024
Which release of Antenna Toolbox are you using? Is it possible that you're using a release where the version of that example didn't include that visualization?
What specifically do you mean by "missing":
  • Is the line of code present but the picture it should have created is not? Did you perhaps accidentally right-click in the example's Live Script then select the "Clear All Output" item?
  • Is the line of code that calls helperAnimateEHFields not present in the Live Script?
Arshaque
Arshaque le 20 Fév 2024
The line of code that calls helperAnimateEHFields is not present in the Live Script when we use the "openExample('antenna/atx_wireless_power_transfer').
If we manually add those lines from the online example and run it in MATLAB, we get an error like this: "Unrecognized function or variable 'helperAnimateEHFields'.".
Looking at the list of functions that are present in the Antenna Toolbox, this particular function is not mentioned.
Walter Roberson
Walter Roberson le 20 Fév 2024
Which MATLAB release are you using?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Design, Analysis, Benchmarking, and Verification dans Centre d'aide et File Exchange

Produits

Version

R2023a

Question posée :

le 26 Mar 2023

Commenté :

le 20 Fév 2024

Community Treasure Hunt

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

Start Hunting!

Translated by