Why can I not see the Menu Bar (File, Edit, View, etc.) when I open my GUIDE-built app in R2025a or R2025b?
10 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2025 年 10 月 10 日 0:00
回答済み: MathWorks Support Team
2025 年 10 月 24 日 15:53
After upgrading from MATLAB R2023a to MATLAB R2025a/R2025b, the classic 'Menu Bar' (File, Edit, View, Insert, Tools, Help) that normally appears at the top of the figure window in my GUIDE-built app is missing. This issue occurs every time I open the app in the newer releases.
Previously, in MATLAB R2023a, these menus were available and allowed me to interact with plots, export data, and access other figure tools.
I need a way to restore these menus or replicate the same functionality in the newer versions of MATLAB. Why is this happening?
採用された回答
MathWorks Support Team
2025 年 10 月 10 日 0:00
This happens because in MATLAB R2025a and MATLAB R2025b, MATLAB figures created without specifying 'MenuBar' default to 'none', hiding the classic menubar and toolbar. GUIDE apps that assume these menus exist by default (like it did previously) will fail when adding submenus. For more details you can compare the R2025b docs to R2023a.
A workaround for this without changing the app code is that after opening the FIG file, run the following commands in the Command Window:
>>h = gcf;
>>set(h,'MenuBar','figure','ToolBar','figure');
To make this permanent, save a patched FIG:
>>savefig(h,'<your_fig_name>_patched.fig';
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Migrate GUIDE Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!