join .m files together

2 ビュー (過去 30 日間)
James Webber
James Webber 2021 年 12 月 30 日
回答済み: Cris LaPierre 2021 年 12 月 30 日
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?

採用された回答

Cris LaPierre
Cris LaPierre 2021 年 12 月 30 日
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 件)

カテゴリ

Help Center および File ExchangePerformance and Memory についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by