Clearing multiple axes in app designer

6 ビュー (過去 30 日間)
John
John 2024 年 10 月 11 日
回答済み: Meet 2024 年 10 月 11 日
Hi, I have multiple axes in my app designer and I want to clear multiple axes all with a single click of the button

採用された回答

Meet
Meet 2024 年 10 月 11 日
Hi John,
To clear multiple axes with a click of a button in MATLAB R2024a, you can use the “cla” function. This function allows you to pass an array of axes as an argument to clear them simultaneously.
For example, if you have axes named ‘UIAxes’ and ‘UIAxes2’, you can call the following function in the callback function of your button:
cla([app.UIAxes, app.UIAxes2]);
You can refer to the documentation below for more information:
Hope this helps!!

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

タグ

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by