Borrar filtros
Borrar filtros

GUI manual data selection

1 visualización (últimos 30 días)
Lukas
Lukas el 19 de Abr. de 2012
Is it possible to have the user select a data value from a plot using a cursor click on the plot?

Respuesta aceptada

Jan
Jan el 19 de Abr. de 2012
Yes. The actual implementation depends on the type of the plot.
H = plot(1:10);
set(H, 'ButtonDownFcn', @myCallback);
function myCallback(ObjH, EvenData)
set(ObjH, 'Color', rand(1, 3));
AxesH = ancestor(ObjH, 'axes');
disp(get(AxesH, 'CurrentPoint'));

Más respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by