%功能:坐标轴标注函数text使用实例
x=0:pi/100:2*pi;
y=sin(x);
plot(x,y)
axis([0,2*pi -1.5 1.5])
line([0 2*pi],[0,0])
text(0.5,0.85,'sin(x)','sc')
text(0.5*pi,0.5,'positive')
text(1.5*pi,-0.5,'negative')
MATLAB坐标轴标注函数text使用实例
最新推荐文章于 2024-05-11 18:38:27 发布