如何对matlab (.m)文件进行最佳/最简单的索引?
4 views (last 30 days)
Show older comments
果博东方注册网址【80877.tv】
on 24 Aug 2022
Answered: 新锦江娱乐开户中心【微959758504978】
on 24 Aug 2022
我需要搜索一大组matlab (.m)文件,但在Google Desktop中找不到这样做的方法。我也没有看到任何支持matlab的源代码索引器。
我有什么选择?
0 Comments
Accepted Answer
新锦江娱乐开户中心【微959758504978】
on 24 Aug 2022
这应该允许您在MATLAB中搜索一系列文件或文件夹。
上一个答案:
如果您只是尝试查找m文件,而不是在其中进行搜索,那么以下内容可能会有所帮助……
例如,如果我想查找名称为"display“的所有重载函数,我可以这样做:
>> which display -all
built-in (C:\Program Files\MATLAB\R2009a\toolbox\matlab\lang\@cell\display) % cell method
built-in (C:\Program Files\MATLAB\R2009a\toolbox\matlab\lang\@double\display) % double method
built-in (C:\Program Files\MATLAB\R2009a\toolbox\matlab\lang\@logical\display) % logical method
built-in (C:\Program Files\MATLAB\R2009a\toolbox\matlab\lang\@char\display)
...
您还可以使用函数形式来收集单元格数组中的文件路径:
filePaths = which('display','-all');
0 Comments
More Answers (0)
See Also
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!