如何在matlab中的xlabel,ylabel,legend和text函数中使用latex答:clc;clearx=0:0.1:pi;plot(x,exp(x),'r-.')xlabel('$$x$$','interpreter','latex','fontsize',22,'color','r')h=legend('$$y={e^x}$$');set(h,'interpreter','latex','fontsize',20)结果:
matlab中[AX,H1,H2] = plotyy(x,y1,x,y2,'plot')和set(get(AX(1...答:1、x=0:pi/100:2*pi; 表示自变量的取值范围;2、[AX,H1,H2] = plotyy(x,y1,x,y2,'plot');返回三个参数,AX是坐标轴的句柄,AX(1) 是左边的纵轴, AX(2) 是右边的纵轴;H1和 H2保存的是图形句柄;和set相关;3、set(get(AX(1),'Ylamabel'),'慢衰','Slow Decay');set用来...