??? Error using ==> feval Undefined function or method 'XX' for input arguments of type 'struct'.

I got the below error when calling a function
??? Error using ==> feval Undefined function or method 'PB_NewVer_Callback' for input arguments of type 'struct'.
The path which contains the necessary .p files is also added in Matlab path. (But if the function is called when the current matlab path is the path containing the .p files, no error)
Can anyone help me in this as soon as possible?

답변 (2개)

This sounds like the folder containing said *.p files is not on the path. Use the pathtool to add them and save the path:
>>pathtool
Anusuya Mani
Anusuya Mani 2012년 6월 5일
Actually another path is added in the process of running my tool which contains the older version of those .m files. The tool runs the files from the latest added path, hence there was an error. I solved it now. Thank you

댓글 수: 1

could you tell me how to solve this problem in detail? i just copied and pasted my .m and .fig in an other version matlab, and got the error as the same as you.

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

카테고리

도움말 센터File Exchange에서 File Operations에 대해 자세히 알아보기

질문:

2012년 6월 5일

댓글:

2014년 4월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by