Problem with Brush Matlab R2015a
조회 수: 6 (최근 30일)
이전 댓글 표시
Since upgrading to R2015a from R2014a. Two problems came up.
I. Changing the transparency of an area filled with the "area" function in the following way doesnt work anymore: x=0:pi/10:2*pi; y=x.^2; harea = area( x, y, 3); h=get(harea,'children'); set( h, 'FaceAlpha', 0.1) ...this code works in 2014a, in 2015a the transparency doesn't change
II. Retrieving data points from a plot with the brush doesn't work anymore. In R2014a the following code worked just fine, in R2015a it doesn't give back anything;
x = 1:.1:10; plot(x,x) brush on pause hBrushLine=findall(gca,'tag','Brushing'); brushedData=get(hBrushLine,{'Xdata','Ydata'}) for I=1:size(brushedData,1) brushedIdx = ~isnan(brushedData{I,1}); Selected_X_Values{I} = brushedData{I,1}(brushedIdx); end fitCorrectStart(1) = Selected_X_Values{1}(1); fitCorrectEnd(1) = Selected_X_Values{1}(end);
I identified two problems here: - Once in the brush mode on the plot no key press will make the pause function continue. - If the pause is limited to 3 seconds by writing pause(3), although data has been brushed during this time the brushedData variable is empty
댓글 수: 0
답변 (1개)
DeeWBee
2015년 8월 12일
I had the same problem. Please look at this link: http://stackoverflow.com/questions/31970679/matlab-2015a-brush-issues/31971128?noredirect=1#comment51849840_31971128.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Manage Products에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!