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

11 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

Gökhan
Gökhan il 11 Giu 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.

Più risposte (0)

Categorie

Scopri di più su Aerospace Applications in Help Center e File Exchange

Prodotti


Release

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by