好像没有直接能够画带有箭头的座标轴的命令.你实在需要可以用图形的工具栏中插入箭头的方法在轴端加个箭头.也可以用命令来画,如下例(转自http://blog.tom.com/blog/read.ph ... 20&blogid=68600):
x1=linspace(0,1,100);
y1=x1.^2;
figure1 = figure('PaperPosition',[0.6345 6.345 20.3 15.23],'PaperSize',[20.98 29.68]);
axes1 = axes('Parent',figure1);
hold(axes1,'all');
plot1 = plot(x1,y1);
annotation1 = annotation(figure1,'arrow',[0.131 0.131],[0.92 0.96]);
annotation2 = annotation(figure1,'arrow',[0.88 0.96],[0.108 0.108]); |