필터 지우기
필터 지우기

Undefined function 'geoidtst' Error

조회 수: 5 (최근 30일)
Mani Ahmadian
Mani Ahmadian 2014년 9월 28일
댓글: Rob Comer 2014년 10월 14일
Hi
I use Azimuth function in my project. It worked very good until this afternoon. Now, I try to run my script and I receive an error message as below:
'Undefined function 'geoidtst' for input arguments of type 'double'.'
Does every body know how I can solve this problem?
Thanks a lot
Mani

답변 (3개)

Kelly Kearney
Kelly Kearney 2014년 9월 30일
Which version of Matlab are you running on each machine? And do you have the Mapping Toolbox installed on both? What does
which azimuth -all
return on each machine?
The geoidtst function was part of earlier versions of the Mapping Toolbox (it's present in the old Matlab74 copy I have), but a lot of helper functions related to reference ellipsoids and geoids and the like have been changed since then. Are you perhaps trying to use an old copy of azimuth.m with a newer copy of Matlab?
  댓글 수: 1
Rob Comer
Rob Comer 2014년 10월 14일
Kelly's guess that you may be trying to use an old copy of azimuth.m makes sense. The geoidtst function was on the MATLAB path, but never documented, through R2011b. It was used internally to validate "geoid vector" inputs. It was removed in R2012a, the same release in which reference spheroid classes were introduced. (For backward compatibility, it's still possible to use "geoid vectors", but the internal validation no longer uses geoidtst.)

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


Chad Greene
Chad Greene 2014년 9월 28일
Most likely, the geoidtst function is in some folder that Matlab can't find. You can change directories to that folder, or use the addpath function to add that folder as a path where Matlab will look for geoidtst. If you can't find geoidtst, this looks like it.
Matlab will look in any path you add, until you restart Matlab. It's possible that last time when your script worked, Matlab knew to look in the right path, but as soon as Matlab closes, it forgets where to look.
  댓글 수: 2
Mani Ahmadian
Mani Ahmadian 2014년 9월 28일
I tried it but problem doesn't solve. I used command 'restoredefaultpath; matlabrc' to reset path of MATLAB,too. but nothing changed.
As I remember, I added new path through 'Set path' menu, but I never remove default paths in dialogue. After that my problem accures and kills my time!
Please help me to solve pitfall.
Thanks
Mani
Chad Greene
Chad Greene 2014년 9월 30일
Matlab simply can't find geoidtst. Create a file in your home folder, and call it startup.m. In that file include a line like this
addpath('filepath/ToFolder/ContainingGeoidtst')
where of course you'd have to change the file path to the actual file path you're using. Matlab will automatically add this path to the directory every time you start Matlab.

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


Image Analyst
Image Analyst 2014년 9월 28일
Type this into the command window
which -all geoidtst
Also, what toolbox is it in? You forgot to list it in the Products box above. Whatever it is, do you have a license for it? Type ver to find out. What does it say when you type which and ver?
  댓글 수: 4
Iain
Iain 2014년 9월 30일
Its in the mapping toolbox.
Image Analyst
Image Analyst 2014년 9월 30일
Thanks - I added above.

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

카테고리

Help CenterFile Exchange에서 Manage Products에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by