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

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

 Réponse acceptée

txdrhwm
txdrhwm le 23 Mai 2023

0 votes

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

Plus de réponses (0)

Catégories

En savoir plus sur 启动和关闭 dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!