Is there a way to view and edit the code or variables associated with a MATLAB GUI element or function through a mouse click, like Excel's macro?
2 ビュー (過去 30 日間)
古いコメントを表示
Does MATLAB have a feature that allows users to click on a GUI element or function with a mouse and view the corresponding code or variable in a script for editing, similar to Excel's macro?
For instance, if a user opens a figure Export Setup dialog box and selects a specific style using the "selectstylebutton" object, can they click on the "stylebutton", "loadstylebutton", and "applicationbutton" objects to save the script?
Here is an example script:
fig.ExportsetupWindow.selectstylebutton.setSelectedItem('mystyle');
fig.ExportsetupWindow.stylebutton.doClick();
fig.ExportsetupWindow.loadstylebutton.doClick();
fig.ExportsetupWindow.applybutton.doClick();
0 件のコメント
回答 (1 件)
Cameron
2023 年 3 月 5 日
inspect(app) %assuming app is the name of your variable that you want to inspect
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で MATLAB Functions in Microsoft Excel についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!