Please refer to the following steps:
1. Refresh the file system caches using the following commands:
>> rehash toolboxcache
2. Run the following command to rebuild Simulink and Library menus and toolbars:
3. Close all the instance of MATLAB and then restart.
Please refer to the below discussion on the same lines: