Advertisement
Guest User

MWE_bold

a guest
Mar 25th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. y = zeros(1, 1000);
  2. x = 1:1000;
  3. n = length(x);
  4.  
  5. figure
  6. plot(x, y)
  7.  
  8. % without math env
  9. tit_norm = sprintf('\\textbf{This curve has n = %d points}', n);
  10.  
  11. % with math env
  12. tit_math = [sprintf('\\textbf{This curve has '), ...
  13. sprintf('$\\mathbf{n=%d}$', n), ...
  14. sprintf(' points}')];
  15.  
  16. title(tit_math, 'interpreter', 'latex')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement