在matlab里怎样只运行我的程序中的一段?。

我有一段较长的程序,为了检验每一部分是否出错,需要把相应的部分复制粘贴到命令行去检验,现在我懒得复制,能否把.m文件里直接只运行一段,再出相应的错误信息?断点能做到我的需求吗?

 Akzeptierte Antwort

txdrhwm
txdrhwm am 23 Mai 2023

0 Stimmen

选中需要执行的语句,按快捷键F9即可

Weitere Antworten (0)

Kategorien

Mehr zu 启动和关闭 finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 23 Mai 2023

Beantwortet:

am 23 Mai 2023

Community Treasure Hunt

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

Start Hunting!