??? 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?

Answers (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 Comment

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.

Sign in to comment.

Categories

Asked:

on 5 Jun 2012

Commented:

on 3 Apr 2014

Community Treasure Hunt

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

Start Hunting!