|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
%%
clear;
close all;
%%
u = 1;
v = 2;
x=-3:3;
y=u * x + v;
figure; plot(x,y,'LineWidth',1.5);
hold on;
%Draw axes
plot([0 0],[min(y)-1 max(y)+1],'k',[min(x)-1 max(x)+1],[0 0],'k');
% Draw arrows
ax=[max(x)+1,max(x)+1-0.3,max(x)+1-0.3; 0,0.12,-0.12];
fill(ax(1,:),ax(2,:),'k');
ay=[0,0.08,-0.08; max(y)+1,max(y)+1-0.4,max(y)+1-0.4];
fill(ay(1,:),ay(2,:),'k');
%%
text(0.2, 5.6, 'y', 'FontName','Times New Roman','FontAngle','Italic','FontSize',18, 'HorizontalAlignment','left')
text(3.6, -0.1, 'x','FontName','Times New Roman','FontAngle','Italic','FontSize',18, 'VerticalAlignment','top')
axis off
print('-djpeg', 'Oxy.jpg')
转自:http://blog.sina.com.cn/s/blog_82b526270101e3fb.html
|
|