필터 지우기
필터 지우기

Almanac function not work

조회 수: 3 (최근 30일)
Lav
Lav 2024년 5월 22일
답변: Star Strider 2024년 5월 22일
Dear Sir or Madam, I am a student, and I am preparing for tomorrow's colloquium (partial exam for those who do not have the Bologna regime). I need to save a script for calculation, and it is based on the almanac function, which suddenly does not work! How can you help me, what should I use in exchange for alamance
Unrecognized function or variable 'almanac'.
Error in ReferetnaPovrs (line 15) this.ref_pov=almanac("earth","bessel","meter");

답변 (2개)

Kunal Kandhari
Kunal Kandhari 2024년 5월 22일
Hi,
The error message "Unrecognized function or variable 'almanac'" typically occurs when MATLAB cannot find the specified function or variable. In this case, 'almanac' is a function that belongs to the Mapping Toolbox. To use this function, you need to ensure that the Mapping Toolbox is installed on your system.
You can verify whether the Mapping Toolbox is installed by executing the 'ver' command in your MATLAB command window. This command will display a list of installed toolboxes along with their versions.
If the Mapping Toolbox is not listed, you will need to install it. You can do this through the MATLAB Add-Ons menu.
Once the Mapping Toolbox is installed, you should be able to use the 'almanac' function without encountering the "Unrecognized function or variable" error.

Star Strider
Star Strider 2024년 5월 22일
It works here —
format longG
ref_pov=almanac("earth","bessel","meter")
ref_pov = 1x2
1.0e+00 * 6377397.155 0.0816968312225275
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>
Since it worked previously, you may have a path problem.
Run these from a script or your Command Window:
restoredefaultpath
rehash toolboxcache
Then run your code again.
If that fails to solve the problem, then Contact Support.
.

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by