join .m files together
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
James Webber
am 30 Dez. 2021
Beantwortet: Cris LaPierre
am 30 Dez. 2021
i have 2 .m files one called battleship.m (main code) and the other battleship board.m
how do i show battleship board.m when i run the battleship.m so that i can see them both work together?
0 Kommentare
Akzeptierte Antwort
Cris LaPierre
am 30 Dez. 2021
I think what you want is best answered by learning how to use the debugging tools in MATLAB. See the Debug MATLAB Code Files page. You can set a breakpoint in any code that will be run by your main code file, and execution will pause at the breakpoint, allowing you to inspect your variables at that point in the code execution.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Performance and Memory 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!