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...?

Risposte (1)

Steven Lord
Steven Lord il 26 Mar 2023
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 Commenti

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.
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?
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?
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.
Which MATLAB release are you using?

Accedi per commentare.

Categorie

Scopri di più su Design, Analysis, Benchmarking, and Verification in Centro assistenza e File Exchange

Prodotti

Release

R2023a

Richiesto:

il 26 Mar 2023

Commentato:

il 20 Feb 2024

Community Treasure Hunt

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

Start Hunting!

Translated by