ephEarthMo​onBarycent​er405.mat not found error although toolbox is installed

조회 수: 11 (최근 30일)
Hi
Although I have the Aerospace Blockset, Aerospace Toolbox and Ephemeris Data for Aerospace Toolbox installed; I receive the following error. Is this some kind of path problem? Or is the mat file really missing ?
The error message is:
The ephemeris data file "ephEarthMoonBarycenter405.mat" could not be found. check that the "Ephemeris Data for Aerospace Toolbox" support package is installed.

채택된 답변

Gökhan
Gökhan 2024년 6월 11일
I have found the resolution to my earlier problem (I think).
What I realized is the following:
when you write a MATLAB script (*.m file) if you specify some local paths for your own (home made) files/folders, you would use addpath command for example:
addpath("Functions\");
this command however, as I understand, messes up with the built in paths and renders some of original MATLAB built-in paths invalid. That was the reason, when I opened a brand new MATLAB session, the scripts which did not have any "path" commands worked (hence finding the ephemeris file). As soon as I used the "path" command, the existing file could not be found. After some test and trial I found that adding my custom paths to the end of path list by the command:
addpath("Functions\",'-end');
worked fine.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Aerospace Applications에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by