how to resolve undefined function?

조회 수: 2 (최근 30일)
Lilya
Lilya 2023년 3월 18일
댓글: Cris LaPierre 2023년 3월 19일
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
Walter Roberson 2023년 3월 18일
It is not part of the Aerospace Toolbox.
Use Add-on Explorer to install it.
Lilya
Lilya 2023년 3월 18일
Thank you very much! i did it
it show now the below error
Check for incorrect argument data type or missing argument in call to function 'asc2eph'.

댓글을 달려면 로그인하십시오.

답변 (1개)

Cris LaPierre
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
Lilya
Lilya 2023년 3월 19일
Thanks, Sir Cris. I've checked what you and the below error appears
It is just the first time i get this error. I usually can add/donload toolboxes to matlab easily.
'asc2eph' is not found in the current folder or on the MATLAB path, but exists in:
/Users/eyounils/Library/Application Support/MathWorks/MATLAB Add-Ons/Collections/JPL Ephemeris manager/@Ephem
Change the MATLAB current folder or add its folder to the MATLAB path.
Cris LaPierre
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 CenterFile Exchange에서 Get Started with Aerospace Blockset에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by