Update a text object's position used with a movable rectangle.
Mostrar comentarios más antiguos
Quick question,
Lets say i have created a rectangle using
h(i) = imrect(gca, [1,1,4,4]);
and then i add a text object with the rectangles name or some data
text(1,1,num2str(1),'BackgroundColor',[.7 .9 .7],'FontSize',7);
How can i make the text follow the rectangle at its final position after i move it?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Entering Commands en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!