Unrecognized function or variable 'efficiency'

I am getting the following error but can't figure out why.
Unrecognized function or variable 'efficiency'.
I am using a full version of MATLAB 2024a with an academic license and all of the toolboxes installed on April 3.
I regularly use the functions from the Antenna Toolbox so I am confident that it is installed correctly. I've also tried copying the text from the Help Center article to make sure there weren't any typos.
'doc efficiency' and 'help efficiency' in the command window work as expected.
Is the 'efficiency' function still available in 2024a? Is there any other reason why it might not be recognized?

 Risposta accettata

You might get that error if the arguments you give to efficiency() are not correct.
For example, calling it like this works:
ant = patchMicrostrip(Substrate=dielectric("Air"),Conductor=metal("PEC"));
eff = efficiency(ant,1e09)
eff = 1
But calling it with no arguments generates the error you got:
eff = efficiency()
Unrecognized function or variable 'efficiency'.

4 Commenti

Which is to say that efficiency() is a method of a class, and will not be located if you do not pass correct parameters.
Thanks, is that common with functions?
To be clear, I had called the function with parameters but the must not have been right
Not sure what I have changed but I'm unable to replicate the error now. Instead I'm getting
Incorrect number or types of inputs or outputs for function efficiency.
Is there any reason efficiency wouldn't work with a phased.ULA object?
The supported objects are
Antenna or array to calculate the efficiency, specified as an antenna or array from the catalog, a pcbStack object, an installedAntenna object, or custom antenna or array created using either of these:
Unfortunately I do not have that toolbox to test to see whether phased.ULA is supported
Thanks, much appreciated

Accedi per commentare.

Più risposte (0)

Categorie

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

Prodotti

Release

R2024a

Richiesto:

il 6 Lug 2024

Commentato:

il 6 Lug 2024

Community Treasure Hunt

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

Start Hunting!

Translated by