1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matlab: How to plot 'text'

  1. Oct 3, 2008 #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 (Text):

    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?
     
  2. jcsd
  3. Oct 3, 2008 #2

    f95toli

    User Avatar
    Science Advisor
    Gold Member

    Something like to following

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

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

    should work
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Matlab: How to plot 'text'
Loading...