Ctrl+Enter running the entire program

10 次查看(过去 30 天)
When I try to run a particular cell of my progeam using the shortcut Ctrl+Enter, it is running the entire program. How do I solve this issue?

回答(1 个)

KSSV
KSSV 2019-6-10
YOu should use %% this at the start and at the end to run a section.
  1 个评论
Paul de Jong
Paul de Jong 2021-9-4
I like to make an outline of my code, so there are incomplete variables in the sections I have not gotten to yet. The issue happens when I just want to run the top of my code but there is an error below that block. I've resorted to using %{ and %}.
It would be great if the %% section mechanism worked so I could test sections as I finish them. Is it a setting?
Thanks!

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 R Language 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by