How to Continually Update Text on a Plain Figure Environment in Matlab?

  • Context: MATLAB 
  • Thread starter Thread starter rsq_a
  • Start date Start date
  • Tags Tags
    Matlab Plot Text
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 53K views
rsq_a
Messages
103
Reaction score
1
I want to be able to display continually updated numbers on a plain figure environment. For example, a cheap way to do this is:

Code:
figure(1)
for j = 1:10
  title([ 'Hello'; num2str(j) ])
end

This prints out a two-liner ('Hello' and a number) in the title portion of the figure.

I want the same thing, but with no actual white plot. In other words, I just want the gray figure window, and updated figures.

How would I do this?
 
Physics news on Phys.org
Something like to following

Code:
figure(1)
set(gca,'Visible','off')

for j=1:10
  text(0,0,num2str(j)
  cla
end


should work