如何对matlab (.m)文件进行最佳/最简单的索引?
조회 수: 4 (최근 30일)
이전 댓글 표시
果博东方注册网址【80877.tv】
2022년 8월 24일
답변: 新锦江娱乐开户中心【微959758504978】
2022년 8월 24일
我需要搜索一大组matlab (.m)文件,但在Google Desktop中找不到这样做的方法。我也没有看到任何支持matlab的源代码索引器。
我有什么选择?
댓글 수: 0
채택된 답변
新锦江娱乐开户中心【微959758504978】
2022년 8월 24일
这应该允许您在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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!