MATLAB: Search finder (Ctrl+F) does not find any object in the model

ctrl+ffindersimulink

I used the Simulink-finder (pressing 'Ctrl+F') to search for a variable. The search function always shows '0 objects found' for any variable, even if it is present. I have even selected all the options such as Masked systems, Linked systems etc. Is there a solution for this?

Best Answer

Please try the following steps: 
  • Enter the following commands in the MATLAB Command Window:
               >> *restoredefaultpath*
               This command corrects any search path related problems encountered by MATLAB during startup. If this does not resolve the issue, please proceed to the next command.
               >> *rehash toolboxcache*
               This command updates the MATLAB list of known files and classes for directories on the search path, along with the cache files. If this does not resolve the issue, please proceed to the next command.
               >> *savepath*
               This command corrects saves the current search path. If this does not resolve the issue, please proceed to the next step.
  * Run ‘shadowFinder.m’ (check attachment) on the current path. This script checks for shadowing, i.e. if your path contains any user-defined functions that have the same name as a built-in MATLAB function. 
  • Enter the following command at the MATLAB Command Window:
              >> *winopen(prefdir)*
              _This will open a folder that contains preferences for MATLAB, a Command history file, MATLAB shortcuts etc. Please delete this folder (the folder auto-generates) and restart MATLAB._
  • Enter the following command at the MATLAB Command Window:
               >> *sl_refresh_customizations*
               _This command refreshes the Simulink menu and Dialog customizations. _