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

2 views (last 30 days)
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)

Sean de Wolski
Sean de Wolski on 5 Jun 2012
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 on 5 Jun 2012
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
hust
hust on 3 Apr 2014
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

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!