finding the lines of code that are being printed to command line
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
A Poyser
am 17 Mär. 2023
Kommentiert: Stephen23
am 17 Mär. 2023
I have a repository of code that works very well, but I am in the process of refactoring it.
One of the problems is that it is printing to the command window. I have fouind lots of lines without semi colons, including all of the backup files, that I have added semi colons to. The problem is it is still printing from somewhere in the repository.
Is there a way of scouring the repository at a high level to find where all of these abset semi-colons may be (not) hiding?
Thanks
1 Kommentar
Stephen23
am 17 Mär. 2023
Unfortunately there is no easy way to achieve this, but you can find a few ideas here:
Akzeptierte Antwort
Sachin
am 17 Mär. 2023
I understand that you want to identify the line of code that prints the associated value in the command window.
MATLAB editor already identifies these lines for you. For this, you must use a Code Analyzer.
Assignments without a semi-colon are marked in the editor using a warning. The appropriate lines are also indicated on the RHS of the editor by the scrollbar
Refer to the following page for how to use the Code Analyzer in the MATLAB editor.
Thanks
Sachin
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Whos finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!