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

34 views (last 30 days)
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.

Accepted Answer

Gökhan
Gökhan on 11 Jun 2024
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.

More Answers (0)

Categories

Find more on Aerospace Applications in Help Center and File Exchange

Products


Release

R2023b

Community Treasure Hunt

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

Start Hunting!