Is it possible to open matlab function block editor code in the standard script editor?

12 ビュー (過去 30 日間)
In older Matlab versions the code from simulink matlab function block would open in the script editor. This was very convenient, since you could have several scripts open in different tabs, and rapidly switch between them. I just tried Matlab 2021b for the first time and this functionality seems to be no longer available. The code from Matlab function blocks now seems to be edited in a dedicated script editor, which means I have to switch between windows instead of simply using the tabs in the script editor. Moreover, this new matlab function block editor seems to be ignoring the color scheme I set in the preferences, and has a white background while I have dark backgrounds in both the script editor and the workspace.
Is there any way to open the code in the old script editor?
Thanks.

採用された回答

T Bui
T Bui 2022 年 8 月 19 日
No answer so far, but I think the best way right now is to Right click on the Matlab function block and choose "Open in a new Tab". Then you can edit any functions on the same Simulink file and reduce the dependency on the main Matlab editor. Hope this help ^^
  1 件のコメント
Sebastián Gómez Jorge
Sebastián Gómez Jorge 2022 年 9 月 21 日
That does help a bit, but the keyboard functionality to switch between tabs is missing, you can't ctrl+tab as in the standard script editor. At least now the color scheame is working..yay!. Hopefuly we'll get the option to open matlab functions in the old script editor window back sometime down the road.
Thanks!

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

その他の回答 (1 件)

J Chen
J Chen 2023 年 1 月 27 日
編集済み: J Chen 2023 年 3 月 26 日
One option is to right click at the block and choose Open in New Window.

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by