MATLAB: How to remove the history of the folders under “Look In” in the Find Files tool in MATLAB 7.7 (R2008b)

filesfindguiMATLAB

I click on Edit -> Find Files… to bring up the Find Files tool. Under that, I can find the history of the folders where I have previously searched for files in the "Look in" field. I am unable to clear this history of previously searched folders.

Best Answer

There is no direct way to remove the history of previously searched files on the Find Files tool.
As a workaround, edit the file 'matlab.prf' in your MATLAB preference directory and then restart MATLAB. You can find the location of the preference directory by executing the following on the MATLAB command prompt:
prefdir
Find 'FindFilesLookinList2' in this file and set it equal to 'S' as:
FindFilesLookinList2=S
Restart MATLAB.