MATLAB 2021b: Run Section not responsive

14 views (last 30 days)
In all my previous experiences of MATLAB versions (2016b - 2021a), I press the 'Run Section' button and it immediately runs.
When I press it in 2021b, sometimes it is responsive but other times it can take upwards to 20-60 seconds to respond (actually start running the section). The script itself runs at the expected rate, but I have no idea why starting the script has such a large delay. It is not a rare occurance, since I tend to encounter this multiple times an hour.
It can get quite frustrating, especially when I am trying to run something extremely simple. I am just wondering if anyone else has encounter this issue, or if the dev's are aware of it.
I am running:
Windows 10 64bit
Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz 2.71 GHz
8GB RAM
EDIT:
After posting this, I tried to notice patterns on when 'Run Section' was unresponsive. For the most part, it occurs after an edit has been made within the section you are trying to rerun. However, it is still for the most part sporadic.
  5 Comments
Ole Wulff
Ole Wulff on 27 Jul 2022
Edited: Ole Wulff on 27 Jul 2022
I have run into the same problem, which makes it difficult to trouble shoot code. Yannick, have you found any other work-around for this problem?
Randy Thurman-Keup
Randy Thurman-Keup on 9 Aug 2022
I seem to have the same problem, but only for a section at the end of a long file with many sections. If I execute a section near the beginning of the long file it runs quick. Or if I take the problem section and place it in a new file, then it always runs promptly as well.

Sign in to comment.

Answers (0)

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!