フィルターのクリア

Unrecognized function or variable 'efficiency'

22 ビュー (過去 30 日間)
Richard
Richard 2024 年 7 月 6 日 16:52
コメント済み: Richard 2024 年 7 月 6 日 21:28
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?

採用された回答

Voss
Voss 2024 年 7 月 6 日 17:06
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 件のコメント
Walter Roberson
Walter Roberson 2024 年 7 月 6 日 21:24
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
Richard
Richard 2024 年 7 月 6 日 21:28
Thanks, much appreciated

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAntennas, Microphones, and Sonar Transducers についてさらに検索

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by