MATLAB Answers

Latex in plot title with variables

141 views (last 30 days)
Payam
Payam on 23 Sep 2017
Answered: Payam on 23 Sep 2017
Hi, I'm running Matlab R2014b. Trying to make a nice plot with :
title([' Slip regulation \lambda for K_{\sigma} = ',num2str(Ksigma),' K = ', num2str(K),' and \epsilon = ', num2str(theta)]);
Tried even with
title([' Slip regulation \lambda for K_{\sigma} = ',num2str(Ksigma),' K = ', num2str(K),' and \epsilon = ', num2str(theta), 'Interpreter','tex' ]);
Still no luck. Would someone help me out ? Thanks in advanced.

  0 Comments

Sign in to comment.

Accepted Answer

Payam
Payam on 23 Sep 2017
Solved it using:
mytitleText = [' Slip regulation \lambda for K_{\sigma} = ',num2str(Ksigma),' K = ', num2str(K),' and \epsilon = ', num2str(theta)];
title(mytitleText,'Interpreter','tex' );

  0 Comments

Sign in to comment.

More Answers (0)