Clearing multiple axes in app designer
조회 수: 7 (최근 30일)
이전 댓글 표시
채택된 답변
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!