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

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

 Accepted Answer

txdrhwm
txdrhwm on 23 May 2023

0 votes

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

More Answers (0)

Categories

Find more on 启动和关闭 in Help Center and File Exchange

Asked:

on 23 May 2023

Answered:

on 23 May 2023

Community Treasure Hunt

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

Start Hunting!