112 views (last 30 days)

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.

Sign in to answer this question.

Opportunities for recent engineering grads.

Apply Today
## 9 Comments

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/467384-method-is-not-defined-or-is-removed-from-matlab-search-path#comment_715485

⋮## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/467384-method-is-not-defined-or-is-removed-from-matlab-search-path#comment_715485

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/467384-method-is-not-defined-or-is-removed-from-matlab-search-path#comment_715488

⋮## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/467384-method-is-not-defined-or-is-removed-from-matlab-search-path#comment_715488

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/467384-method-is-not-defined-or-is-removed-from-matlab-search-path#comment_788068

⋮## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/467384-method-is-not-defined-or-is-removed-from-matlab-search-path#comment_788068

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/467384-method-is-not-defined-or-is-removed-from-matlab-search-path#comment_788098

⋮## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/467384-method-is-not-defined-or-is-removed-from-matlab-search-path#comment_788098

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/467384-method-is-not-defined-or-is-removed-from-matlab-search-path#comment_788119

⋮## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/467384-method-is-not-defined-or-is-removed-from-matlab-search-path#comment_788119

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/467384-method-is-not-defined-or-is-removed-from-matlab-search-path#comment_788140

⋮## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/467384-method-is-not-defined-or-is-removed-from-matlab-search-path#comment_788140

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/467384-method-is-not-defined-or-is-removed-from-matlab-search-path#comment_788348

⋮## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/467384-method-is-not-defined-or-is-removed-from-matlab-search-path#comment_788348

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/467384-method-is-not-defined-or-is-removed-from-matlab-search-path#comment_788500

⋮## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/467384-method-is-not-defined-or-is-removed-from-matlab-search-path#comment_788500

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/467384-method-is-not-defined-or-is-removed-from-matlab-search-path#comment_788541

⋮## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/467384-method-is-not-defined-or-is-removed-from-matlab-search-path#comment_788541

Sign in to comment.