Method is not defined or is removed from MATLAB search path

123 次查看(过去 30 天)
Hi, this error occurs in the new versions of MATLAB (version = 2018b)
This error occurs when you have defined a method in a separate file,
This occurs for the both static and regular methods.
When every thing is correct and even the MATLAB auto-completion finds the method,
but when you call the method, the error "Method is not defined or is removed from MATLAB search path" occurs.
Note that this error is automatically resolved when MATLAB is restarted multiple times!
I think it is a bug in the new versions.
  14 个评论
Walter Roberson
Walter Roberson 2021-6-29
Informaton's posting was an accurate description of the cause of their problem, and so is useful to inform people about things to check that might turn out to be valid for them. People are not required to know and describe all causes of similar symptoms.
Pavitra kumar
Pavitra kumar 2021-9-13
I had the same error. I was designing an app which was supposed to use two separate window (one the welcome window and other the calculation window). I had designed in such a way that if the user pressed the "Proceed" button on welcome window then the welcome window was closing and the calculation windows was poping up. It was working fine when run from the app designer. But when it was complied as "Matlab app" it was woking fine for welcome window, but once proceed button was pushed and the welcome window was closed, then nothing was working. I was given this errors whenever I pressed any of the buttons.
"Method 'ComputeButtonPushed' is not defined for class 'predict_compute_app' or is removed from MATLAB's search path."
I digged deep into it and found that I was compiling the app using the welcome window, which was fair enough. But the problem occurred when the program closes the welcome window, as per the app design. When I compiled the app using welcome window as the main app, then welcome window needs to be open thorughout the running time of the program. I resolved this error by restructuring the code that does not close the main window.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Software Development Tools 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by