The possible cause of the issue could be creation of custom paths. You may consider following the steps to remove any custom paths you may have created.
Before modifying the search path, you can take a backup of your 'pathdef.m' file, which can be located by using the command
>> which -all pathdef
Before proceeding, you should backup this file by copying it to a folder outside of your MATLAB path.
After making the backup, please execute the following commands in the MATLAB Command Window to restore the default MATLAB search path and rehash the toolbox cache:
>> restoredefaultpath
>> rehash toolboxcache
After this step, please use MATLAB normally to see if the issue occurs again. If the issue is resolved, then you can save the new MATLAB search path by executing the following command:
>> savepath
After running the above commands in MATLAB Command line, please verify if the issue is resolved. If not, kindly consider reinstalling the MATLAB. The issue could be due to some files getting corrupt during the time of installation. Please refer to link below whic ellaborated the steps to clean reinstall MATLAB in Window Syatem.
In case the issue persists even after re installing the MATLAB, please feel free to reach out to MathWorks Technical Support for further assistance.