 |
如何在matlab中的xlabel,ylabel,legend和text函數中使用latex_matlab
以下例子中展示瞭如何用在matlab函數中使用latex t = 0:0.1:2*pi; x = sin(t); hold on; plot(t,x,'-*'); plot(t,2*x,'-.'); %% Using Latex in xlabel and ylabel xlabel('$Time$','Interpreter','LaTex'); ylabel('$Value$','Interpreter','LaTex'); %% Using Latex in legend
www.zdh1909.com |
 |