MATLAB Community

MATLAB, community & more

Where did my M-file run off to?

After you have been writing M-code for a while you gather lots of M-files possibly scattered over many directories. Finding that one piece of text that you are looking for without exactly knowing where it is, is difficult. The Find Files tool is perfect for this kind of task.

Find Files is accessible from the “Edit” menu, “Find Files…” menuitem.

Recently I was working on some M-code that generates a web photo gallery from a directory of images. I went back to work on it a couple of weeks later and couldn’t remember where I had stored the files. To find the code I will use the Find Files tool to search my home directory.

Incremental Search Box

Now that I’ve found it, I can turn on the option to see full pathnames to see exactly where the file lives. I didn’t really even need the full pathname since I can just double click to open the file in the editor to the line that was found.

Incremental Search Box

|
  • print

댓글

댓글을 남기려면 링크 를 클릭하여 MathWorks 계정에 로그인하거나 계정을 새로 만드십시오.