フィルターのクリア

Increment value and run for cells missing in R2021b

22 ビュー (過去 30 日間)
Chris Adamson
Chris Adamson 2021 年 10 月 27 日
コメント済み: Matthieu 2023 年 3 月 16 日
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.

採用された回答

Julie Shapiro
Julie Shapiro 2023 年 3 月 16 日
We are happy to report that starting in R2023a, the Increment Value and Run Section tool is once again available in the Editor. You can use the tool to increment, decrement, multiply, or divide numeric values in the Editor and then run the current section after every change.
To adjust a numeric value, select the value or place your cursor next to the value, right-click and select Increment Value and Run Section. Then, use the Increment Value and Run Section dialog box to adjust the value and run the current section.
The Increment Value and Run Section tool is only available in the Editor. To adjust numeric values in the Live Editor, use controls such as numeric sliders and spinners.
For more information, see Create and Run Sections in Code and the MATLAB Release Notes.
  1 件のコメント
Matthieu
Matthieu 2023 年 3 月 16 日
Thank you so much !!

サインインしてコメントする。

その他の回答 (1 件)

Shanmukha Voggu
Shanmukha Voggu 2021 年 10 月 29 日
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.
  11 件のコメント
Matthieu
Matthieu 2022 年 9 月 2 日
Really a pitty... missing feature...
cui,xingxing
cui,xingxing 2022 年 11 月 21 日
This feature was removed a little too quickly, which is a bit of a shame.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by