mlint across multiple functions in separate files
조회 수: 2 (최근 30일)
이전 댓글 표시
I use mlint a lot. I think it operates only on a single file. Suppose I have two functions foo.m which calls bar.m. I'd like it to check that the call to bar has the same number of inputs and outputs as are in its definition in bar.m. Complicating this, of course, are variable-argument functions, and the possibility of other programs named bar.m somewhere lower in the search path. Any way to accomplish this?
댓글 수: 0
채택된 답변
Walter Roberson
2011년 6월 21일
mlint does not currently support IPA (intra-procedural analysis).
댓글 수: 0
추가 답변 (1개)
Fangjun Jiang
2011년 6월 21일
Do you use M-Lint interactively in M-editor, or do you use mlint() as a function in M-script? The Tools>Show Dependency Reports in M-editor should help you. The function format is depfun(). You must already know that which bar -all will search all bar.m or bar.p in the path.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 File Operations에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!