Problem with Brush Matlab R2015a

6 ビュー (過去 30 日間)
sven
sven 2015 年 6 月 11 日
回答済み: DeeWBee 2015 年 8 月 12 日
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

回答 (1 件)

DeeWBee
DeeWBee 2015 年 8 月 12 日

カテゴリ

Help Center および File ExchangeManage Products についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by