Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Get Tags for All Brushed Objects

2 visualizzazioni (ultimi 30 giorni)
Alex
Alex il 28 Lug 2016
Chiuso: MATLAB Answer Bot il 20 Ago 2021
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?

Risposte (0)

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by