Matlab Figure Titles

  • MATLAB
  • Thread starter ADunn
  • Start date
  • #1
6
0

Main Question or Discussion Point

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!
 

Answers and Replies

  • #2
marcusl
Science Advisor
Gold Member
2,714
382
title(['M = ',num2str(M)'])
 
  • #3
marcusl
Science Advisor
Gold Member
2,714
382
Sorry, got an extra quote mark in there.
title(['M = ',num2str(M)])
 
  • #4
6
0
Thank you so much!
 

Related Threads on Matlab Figure Titles

  • Last Post
Replies
4
Views
1K
  • Last Post
Replies
5
Views
5K
  • Last Post
Replies
1
Views
656
  • Last Post
Replies
7
Views
14K
Replies
3
Views
3K
Replies
1
Views
3K
Replies
4
Views
2K
Replies
0
Views
2K
Replies
2
Views
2K
Replies
0
Views
7K
Top