How to create a textbox with a changing variable?
17 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
AbdullahAJ6
el 8 de Jul. de 2018
Respondida: AbdullahAJ6
el 14 de Jul. de 2018
I have a code which runs a movie using drawnow (not my own code, just adding stuff to it) and I would like to add a text box which indicates the frame number as the movie is playing.
I can get it to work with the 'annotation' function and using num2str but it seems like the numbers are overwritten on top of each other like in the file.
Curiously, when I try it using the title:
title(['i = ' num2str(i)])
it works fine
3 comentarios
Robert U
el 9 de Jul. de 2018
Hi AbdullahAJ6:
It looks like you are creating new annotations every loop iteration. If so, create an annnotation object of your annotation and modify the "String" property.
Kind regards,
Robert
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Spline Postprocessing 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!