Error Matlab 2022 and 2023 : Undefined function 'find' for input arguments of type 'pattern'

6 views (last 30 days)
Hello,
I found this kind of error recently on my matlab 2022a, 2022b, and even 2023 : Undefined function 'find' for input arguments of type 'pattern'. Before (1-2 months ago) they worked fine. Anyone know this issue?
  5 Comments
Dyuman Joshi
Dyuman Joshi on 16 Jul 2023
Please copy and paste the whole error message i.e. all of the red text.
Also, post the code where you use the function find() and it gives the error.
Adi Purwandana
Adi Purwandana on 16 Jul 2023
FYI, 2 months ago there was no problem. I don't think it's my script failure. Now, even I can't add any single component (axes, button etc) in app designer, and got this message:

Sign in to comment.

Accepted Answer

Adi Purwandana
Adi Purwandana on 17 Jul 2023
Moved: Rik on 17 Jul 2023
Hello everyone,
I thought my problem is solved after following the answer by Prashanth Soundararajan on this thread:
It's simply related to path issues, so it's simply solved by:
Try restoring the default path by typing the following in the MATLAB Command Window:
>>restoredefaultpath
>>rehash toolboxcache
>>savepath

More Answers (0)

Categories

Find more on Loops and Conditional Statements 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!