필터 지우기
필터 지우기

how to deselect a brushed data programatically? Without clicking on the figure

조회 수: 6 (최근 30일)
how to programmatically deselect brush data without clicking on the figure? Maybe using set function
thank you

답변 (1개)

Maadhav Akula
Maadhav Akula 2021년 3월 10일
You can set the Brushed Data to 0 at the respective indices to deselect the brushed data. Please check the example below to better understand this:
%% Plot a surface
z = peaks(25);
figure
h = mesh(z);
brush on
%% Now manually brush the data on the figure using mouse
brush off
%% Capture the brushed elements and set them to 0
data = h.BrushData;
indices = find(data);
data(indices) = 0;
h.BrushData = data;
% Check the figure
Hope this helps!

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by