R2021b: The Run Section tool in the Editor has been removed

6 ビュー (過去 30 日間)
per isakson
per isakson 2021 年 9 月 26 日
回答済み: Julie Shapiro 2023 年 3 月 16 日
I use the Run Section tool all the time and was surprised to read in the R2021b release notes that it's been removed. Is it replaced by something better? I failed to find anything of that kind in the documentation.
The old question Keyboard shortcut to evaluate current line? has 619 views (last 30 days), which indicates that the tool has users. The accepted answer presents a working solutions, which uses matlab.desktop.editor.getActive and eval. Is there an API for the new Editor (similar to the old Editor API, matlab.desktop.editor)?
  2 件のコメント
Star Strider
Star Strider 2021 年 9 月 26 日
It’s in the Section part of the top toolstrip.
.
CdC
CdC 2021 年 12 月 15 日
This was a super valuable tool. Not sure why it was removed, but PLEASE PUT IT BACK!!! This is TERRIBLY UNFORTUNATE!!! If it's been put somewhere else, please let us know. Thank you.

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

採用された回答

Bruno Luong
Bruno Luong 2021 年 9 月 26 日
It's still there

その他の回答 (2 件)

Steven Lord
Steven Lord 2021 年 9 月 26 日
I believe that entry in the Release Notes could use a set of quotes around the name of the tool. There was a tool that would let you increment a selected value and then rerun the section in which it was located as one step, the "Increment Value and Run Section" tool. See the Evaluate Code Sections portion of this documentation page from the release R2020b documentation for more information.
It is that tool which has been removed, not the "Run Section" tool accessible from the Toolstrip.
  1 件のコメント
per isakson
per isakson 2021 年 9 月 27 日
編集済み: per isakson 2021 年 9 月 27 日
Thank you for your patience. I misread, jump to the wrong conclusion and was too quick to submit a question. Sorry.

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


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.

カテゴリ

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