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

Respuestas (1)

Steven Lord
Steven Lord el 26 de Mzo. de 2023

0 votos

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 comentarios

Maria
Maria el 28 de Mzo. de 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 el 9 de En. de 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 el 9 de En. de 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 el 20 de Feb. de 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 el 20 de Feb. de 2024
Which MATLAB release are you using?

Iniciar sesión para comentar.

Categorías

Más información sobre Design, Analysis, Benchmarking, and Verification en Centro de ayuda y File Exchange.

Productos

Versión

R2023a

Preguntada:

el 26 de Mzo. de 2023

Comentada:

el 20 de Feb. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by