フィルターのクリア

is there a way to Navigate through lots of m files?

5 ビュー (過去 30 日間)
Rami
Rami 2015 年 9 月 16 日
コメント済み: Jon 2015 年 9 月 16 日
I am searching for something function in lots of m files. I wish if there was a way that I may navigate through lots of m files in one place. I copied all text to one m file and then navigate the normal way; however, I was wondering whether there is an easier way of doing so (because I have 17 functions in the folder).
Thank you in advance
  1 件のコメント
Kirby Fears
Kirby Fears 2015 年 9 月 16 日
What is the purpose of navigating 17 functions? Are you hoping to find a particular string (like a function call) but don't know which of your 17 functions contain the function call?

サインインしてコメントする。

回答 (1 件)

John D'Errico
John D'Errico 2015 年 9 月 16 日
If you are looking for some text string in one or more of your files, you can use a tool like my mgrep.
mgrep searches through a given directory, and all sub-directories that it finds. But you can turn off the recursive search. For example, in one of my own directories...
mgrep simplicial . recurse off
Searching directory(ies)...
/Users/johnderrico/Desktop/My_FEX/facetnormals.m
% this is a simplicial complex structure
/Users/johnderrico/Desktop/My_FEX/interpns.m
% interpne: interpolates an array using simplicial interpolation
% note: interpolates using a simplicial dissection of the n-d hyper-rectangle
/Users/johnderrico/Desktop/My_FEX/refinetri.m
% refinetri: refines (once) a 2-d simplicial complex
% sc - simplicial complex struct to be refined. those edges
% scr - refined simplicial complex struct
% pack it all back into a simplicial complex
/Users/johnderrico/Desktop/My_FEX/trussmodel.m
% converts a 2-d or 3-d simplicial complex to a truss, then solves a fem
% sc - a 2-d or 3-d simplicial complex. may not be a manifold. it
% see also: simplicialcomplex,
error 'sc must be a simplicial complex'
  2 件のコメント
Kirby Fears
Kirby Fears 2015 年 9 月 16 日
You can do the same thing nicely with notepad++ (free software). Just bring up the ctrl+f search box and select a directory to search instead of a file.
Jon
Jon 2015 年 9 月 16 日
The built-in folder search panel in Windows also searches within the files for strings. I use it occasionally.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSearch Path についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by