How can I select programmatically AxesToolbar tool?
조회 수: 1 (최근 30일)
이전 댓글 표시
I'm building an app and would like to use only brush tool for one of my plots and pre-select this for user. How can I select at startup function the brush tool programmatically?
So far I have made brush the only availabe option:
% Create axestoolbar with only brush
axtoolbar(app.UIAxes,{'brush'});
댓글 수: 0
답변 (1개)
Thomas Fournier
2021년 8월 11일
Just doing this after your scatter should work:
x = rand(20,1);
y = rand(20,1);
scatter(x,y)
brush('on')
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!