Clear Filters
Clear Filters

how to find brushed data

44 views (last 30 days)
eric jackson
eric jackson on 13 Oct 2021
Commented: eric jackson on 15 Oct 2021
I want to create a figure, plot some data, manually brush some of that data and then run some analysis on the selected data. In Matlab 2010b I created one subroutine which created several figures, each with plot:
In the 2nd subroutine I found the brushed data:
Ths no longer works in Matlab 2021. b0 comes back empty. How do I find the Brushed data?

Accepted Answer

Yair Altman
Yair Altman on 15 Oct 2021
In the new graphics system (R2014b onward), the brushed data info can be extracted from the hidden/undocumented BrushHandles property, as exaplained here:
As Dave noted above, it's a bit dangerous to rely on undocumented properties/features, but note that this particular feature (like the vast majority of other undocumented features in Matlab) has not changed since R2014b. So while it might indeed stop working in the next release, history has shown that this is in fact unlikely. As long as you're aware of the limitations/risks, you can use these features to your advantage.
eric jackson
eric jackson on 15 Oct 2021
h.BrushData comes back empty.
eric jackson
eric jackson on 15 Oct 2021
My mistake this time. I found it. Thanks.

Sign in to comment.

More Answers (0)


Find more on Graphics Performance in Help Center and File Exchange




Community Treasure Hunt

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

Start Hunting!