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

23 次查看(过去 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