Effacer les filtres
Effacer les filtres

Method is not defined or is removed from MATLAB search path

87 vues (au cours des 30 derniers jours)
abblah abblah
abblah abblah le 17 Juin 2019
Commenté : Pavitra kumar le 13 Sep 2021
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 commentaires
Walter Roberson
Walter Roberson le 29 Juin 2021
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 le 13 Sep 2021
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.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Software Development Tools dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by