MATLAB 2021b: Run Section not responsive

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 Kommentare

Walter Roberson
Walter Roberson am 27 Nov. 2021
Question: are you doing this for Live Script, or older style code ?
Arpad Voros
Arpad Voros am 27 Nov. 2021
Not live script, just regular style code
Yannick Linus Schubert
Yannick Linus Schubert am 14 Jan. 2022
Bearbeitet: Yannick Linus Schubert am 14 Jan. 2022
I have recognised the same issue on different PCs, but only with the latest version 2021b. Writing a simple command such as "clc" forces the section run, but this is still very annoying. I ended up using only earlier versions, since it doesn't occur there.
Ole Wulff
Ole Wulff am 27 Jul. 2022
Bearbeitet: Ole Wulff am 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?
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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2021b

Gefragt:

am 27 Nov. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by