Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matlab Figure Titles

  1. Mar 20, 2010 #1
    In Matlab I have a for loop that plots a figure in each loop. (M = 0.85:1:2.85)
    I would like to put a title on the figure "M = 0.85" for the first plot, "M=1.85" for the second plot, and "M=2.85" for the third plot. Can anyone tell me how to do this?

    Thank you!
     
  2. jcsd
  3. Mar 20, 2010 #2

    marcusl

    User Avatar
    Science Advisor
    Gold Member

    title(['M = ',num2str(M)'])
     
  4. Mar 23, 2010 #3

    marcusl

    User Avatar
    Science Advisor
    Gold Member

    Sorry, got an extra quote mark in there.
    title(['M = ',num2str(M)])
     
  5. Apr 14, 2010 #4
    Thank you so much!
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Matlab Figure Titles
  1. Matlab and tables (Replies: 0)

  2. Simple Matlab (Replies: 2)

  3. Arduino and Matlab (Replies: 1)

Loading...