Matlab Tricks(十七)—— 使用 Latex

来源:互联网 发布:弓箭在淘宝上买几元 编辑:程序博客网 时间:2024/06/05 16:30
>> set(text, 'Interpreter')'none''tex''latex'            % Matlab将返回'Interpreter'(解释器,对 text 文本的解释)所包含的属性值:
  • 1、 在图象中直接加字符,很简单。

    text('Interpreter','latex','String','$$\sqrt{x^2+y^2}$$','Position',[.5.5],… 'FontSize',16);
  • 2、在legend里加数学字符

    h = legend('$$\sqrt{x^2+y^2}$$');set(h, 'Interpreter', 'latex')

Matlab 中巧用 LaTex

0 0
原创粉丝点击