Find a matlab files from laptop

20 views (last 30 days)
Vartika Agarwal
Vartika Agarwal on 13 Dec 2022
Answered: Steven Lord on 13 Dec 2022
Actually I have done a code in May 2022. But i am unable to recover the matlab file because i forget the name of file and folder.
I want to extract all matlab files from system. How Can I do

Answers (1)

Steven Lord
Steven Lord on 13 Dec 2022
If it were more recent I would check the list of recent files (on the Editor tab of the Toolstrip click the downward pointing triangle below the Open icon) but since it's been over six months I'm guessing you've opened enough files for that one to fall off the list.
Other options for places users commonly place files are in the userpath folder and in the temporary directory tempdir.
userpath
ans = '/users/mss.system.1NuNTC'
tempdir
ans = '/tmp/'
If you can't find the file there, I think your best bet is to use whatever tool or app your operating system provides to look for files with the .m or .mlx extension. On Windows open File Explorer and use the search box at the top of the File Explorer window, for example. That may take a while, but if you really have no idea where it is you're going to have to do a lot of digging no matter what approach you use.

Categories

Find more on Environment and Settings in Help Center and File Exchange

Tags

Products


Release

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!