查看单个帖子
旧 2009-02-25, 23:23   #2
xiezhh
普通会员
 
注册日期: 2007-08-07
帖子: 64
声望力: 20
xiezhh 是一个将要出名的人
默认 回复: [求助]新手求教!如何画箭头

%三维箭头
quiver3(0,0,0,1,0,0,2,'k','filled','LineWidth',2);
hold on
quiver3(0,0,0,0,1,0,2,'k','filled','LineWidth',2);
quiver3(0,0,0,0,0,1,2,'k','filled','LineWidth',2);

%二维箭头
annotation('arrow',[0.1 0.1],[0.8 0.8],'LineStyle','-','color',[1 0 0]);
annotation('arrow',[0.2 0.8],[0.3 0.3],'LineStyle','-','color',[1 0 0],'HeadStyle','plain');
annotation('arrow',[0.2 0.8],[0.5 0.5],'LineStyle','-','color',[1 0 0],'HeadStyle','cback3');
annotation('doublearrow',[0.2 0.8],[0.7 0.7],'LineStyle','-','color',[1 0 0],'HeadStyle','cback3');
xiezhh 当前离线   回复时引用此帖