Using MATLAB 2017b.
I was trying to use this function to determine the position and velocity of planets:
[position,velocity]=planetEphemeris(juliandate(2018,1,1),'Earth','Moon')
and I've already installed the aerospace toolbox, it's located in the Mac applications directory with the aeroDataPackage. (PS. all my MATLAB written scripts directory is located in a specified MATLAB folder in the Documents directory).
When I ran my script using that function, I got this error. I don't understand why since I got it downloaded and is found in the directory. Please help and explain?
Error using planetEphemeris (line 160)Ephemeris data is not available on the MATLAB path. You might need to downloadit using the aeroDataPackage function.Error in Runs (line 140)[position,velocity]=planetEphemeris(juliandate(2018,1,1),'Earth','Moon')
Best Answer