GUI manual data selection
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Is it possible to have the user select a data value from a plot using a cursor click on the plot?
0 comentarios
Respuesta aceptada
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)
Ver también
Categorías
Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!