Increment value and run for cells missing in R2021b

27 views (last 30 days)
Chris Adamson
Chris Adamson on 27 Oct 2021
Commented: CdC on 4 Jan 2022 at 10:38
Has the "Increment and run" feature for code in the editor been removed in 2021b? I understand that live scripts implement it but its clunky for what I want to do.

Answers (1)

Shanmukha Voggu
Shanmukha Voggu on 29 Oct 2021
Hi Chris,
You are correct that Increment Value and Run Section tool has been removed in R2021b, checkout release Notes
To increment a numeric value within a section, use controls in the Live Editor. For example, this code calculates the factorial of the variable x.
x = 5;
y = factorial(x)
y = 120
To interactively change the value of x, in a live script, replace the value 5 with a numeric slider. By default, MATLAB reruns the current section when the value of the slider changes.
CdC on 4 Jan 2022 at 10:38
PLEASE PUT INCREMENT AND RUN BACK in the next release! This is a very important feature. We're not able to use the latest matlab versions of everything because of this. Don't decide for your users that they don't need this long-loved feature. Thank you.

Sign in to comment.




Community Treasure Hunt

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

Start Hunting!