Matlab中画图数学公式的输出格式

1、可以在输出参数中选择 ('Interpreter', 'latex').

2、字符序列中的数学表达式需用$$等形式括起来。

例子:

text(6, 0.3, '$\leftarrow  y= 2^{-x}$', 'HorizontalAlignment', 'left', 'Interpreter', 'latex', 'FontSize', 15);

其效果如下图所示:

posted @ 2017-01-27 19:32  strchn  阅读(2901)  评论(0编辑  收藏  举报