How to refresh annotations (in figures) using a timer function? See code below. I want to have this arrow "update" or refresh in spatial position everytime the timer calls the plot function. Thank you!

4 views (last 30 days)
Sample code that I want to fresh in a figure using a timer...
[Xf, Yf] = ds2nfu(data.tickX(end,1), data.dClose(end,1));
h=annotation('arrow',[Xf*1.05 Xf*1.01],...
[Yf Yf],'Color',[1 0.600000023841858 0],...
'LineWidth',2,...
'HeadStyle','cback1');

Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!