mlint across multiple functions in separate files
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 21 Jun. 2011
mlint does not currently support IPA (intra-procedural analysis).
0 Kommentare
Weitere Antworten (1)
Fangjun Jiang
am 21 Jun. 2011
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 Kommentare
Siehe auch
Kategorien
Mehr zu Environment and Settings finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!