有关Matlab帮忙标注一下曲线图(有源程序)

2025-04-09 21:02:24
推荐回答(2个)
回答1:

网上比较流行的一个标注代码:
fplot('(1+1/x)^x',[1,100,-5,-0.5,1]);
text('Interpreter','latex','String','$$lim(1+{\frac{1}{x}})^x$$','Position',[40 2.55],'FontSize',16)
text(40.5,2.51,'n\rightarrow\infty','FontSize',10)
text('Interpreter','latex','String','$$x=\sqrt{x+1}$$','Position',[-8 2.3],'FontSize',16,'rotation',90)
text(-9.9,2.335,'.','FontSize',16)
text('Interpreter','latex','String','$$Typeset by TEX inline:\int_0^1xdx$$','Position',[25 2.15],'FontSize',16)

坐标轴标注:
set(gca,'Xtick',(1:1:7),'Xticklabel',{'Matlab','讨','论','区','欢','迎','您'},...
'Color','white','FontWeight',' bold ')

回答2:

要实现什么样的标注啊,要标注那些内容?详细些