Clearing multiple axes in app designer

조회 수: 7 (최근 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 CenterFile Exchange에서 Develop 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