필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Get Tags for All Brushed Objects

조회 수: 2 (최근 30일)
Alex
Alex 2016년 7월 28일
마감: MATLAB Answer Bot 2021년 8월 20일
How can I access the 'Tag' of each brushed object?
Here's a simple example of what I want to accomplish using two lines.(Note: In this example the 'Tag' fields are empty, but let's assume that in my real application they contain text information...)
plot(1:1:9,9:-1:1); hold on; plot(1:1:9,1:1:9,'r');
When I brush a number of graphics objects > right click > Create Variable, the following dialog pops up. It shows the brushed objects, the Type, and the Tag. I would like to extract the information from the 'Tag' field.
I tried this, but it just returned an empty GraphicsPlaceholder array.
>> findobj(gcf,'-property','BrushData')
I'm using R2015a. Most of the examples I found seemed to be from older versions of Matlab, so maybe something changed with HG2?

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by