This question is related to This Question.
I have followed the example from there:
t=0:0.2:25; plot(t,sin(t),'.-');
brush on
pause
hBrushLine = findall(gca,'tag','Brushing');
brushedData = get(hBrushLine, {'Xdata','Ydata'});
brushedIdx = ~isnan(brushedData{1});
brushedXData = brushedData{1}(brushedIdx);
brushedYData = brushedData{2}(brushedIdx);
However, findall(gca,'tag','Brushing')
is empty.
In fact, looking at the properties of gca
, the label Tag
is empty after setting brush on
.
I have MATLAB 2016a and we have also tested MATLAB 2015a.
Does anyone know how to find the selected data?
Regards Erik