??? 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
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 的更多信息

评论:

2014-4-3

Community Treasure Hunt

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

Start Hunting!

Translated by