How can I write this in my figure title?
    2 views (last 30 days)
  
       Show older comments
    
Hi! Can anyone please tell me how can I write this in my figure (either in title or in y axis)?
Thank you!!

0 Comments
Accepted Answer
  Arif Hoq
      
 on 17 Feb 2023
        
      Edited: Arif Hoq
      
 on 17 Feb 2023
  
      plot(1:10)
% t = '$\frac{H}{|H_m{_a}{_x}|}$';
[t,s]=title('$\frac{H}{|H_m{_a}{_x}|}$','interpreter','latex');
t.FontSize = 18;
2 Comments
  Les Beckham
      
 on 17 Feb 2023
				Nice.
I find this a bit easier to read, however, 
[t,s] = title('$\frac{H}{|H_{max}|}$', 'interpreter', 'latex');
as opposed to the multiple curly braces and underscores for each letter of "max"
[t,s]=title('$\frac{H}{|H_m{_a}{_x}|}$','interpreter','latex');
More Answers (0)
See Also
Categories
				Find more on Title 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!


