how to resolve undefined function?
6 次查看(过去 30 天)
显示 更早的评论
Hi- I am trying to execute a function (asc2eph) that I found in the file exchange.
It seems it is within the aerospace toolbox.
It does exist on my computer, and the directory is defined.
However, the following error is appeared (I've attached a screenshot from the directory)
'asc2eph' is not found in the current folder or on the MATLAB path, but exists in:
/Users/eyounils/Documents/MATLAB/untitled folder 2/@Ephem/@Ephem
Change the MATLAB current folder or add its folder to the MATLAB path.
Unrecognized function or variable 'asc2eph'.
3 个评论
Walter Roberson
2023-3-18
It is not part of the Aerospace Toolbox.
Use Add-on Explorer to install it.
回答(1 个)
Cris LaPierre
2023-3-18
移动:Cris LaPierre
2023-3-18
You do not appear to be using the correct syntax when calling this function. I suggest reading through the comments at the top of the function to be sure you are supplying it with the expected input values.
2 个评论
Cris LaPierre
2023-3-19
This is not a MathWorks created function. Someone else has created and shared it with the community.
I would suggest adding the folder " /Users/eyounils/Library/Application Support/MathWorks/MATLAB Add-Ons/Collections/JPL Ephemeris manager" and all subfolders to your MATLAB Path.
Be sure to save your changes.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 File Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!