catch line using callback
이전 댓글 표시

mycallback = @(varargin) disp("yeah? what do ya want?");
plot(1:5,rand(1,5),buttondownfcn = mycallback)
but I want to capture the line that touches
i use this code to plot line
legend_lines(i)=plot(Ax_Eq,XDates,TE_strum(:,i),'Color',col(i,:));
after i want to using line capture changing color
legend_lines(line_callback).Color=[0 0 1]
It's possibile to do it?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!