SHARE
TWEET

MWE_bold

a guest Mar 25th, 2019 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top