matlab 修改 设置 三维箭头大小 尺寸
冰三点水
转帖请注明原创: http://blog.csdn.net/u013608300/article/details/79224002。
微信公众号:工程师看海
matlab中绘制三维箭头的函数是quiver3。但是该函数的帮助文档并未说明如何修改箭头大小。总结修改方法如下:
clc
clear
close all;
h = quiver3(0,0,0, 1,1,1,1);
set(h,'maxheadsize',1); %set the size
clear
close all;
h = quiver3(0,0,0, 1,1,1,1);
set(h,'maxheadsize',1); %set the size
其中h是该箭头的句柄,我们设置h的相关参数就可以修改箭头的大小。图1、图2和图3分别为set的参数为0,1,2时对应的箭头。
![](https://i-blog.csdnimg.cn/blog_migrate/52e9f8f9af38ed2ac5ef569a8cea1a22.png)
图1 set(h,'maxheadsize',0);
![](https://i-blog.csdnimg.cn/blog_migrate/b0773f04966f9c8bc6e9e6463a27426a.png)
图2 set(h,'maxheadsize',1);
![](https://i-blog.csdnimg.cn/blog_migrate/a0829efb15553e4dfc0a6e630f6f96c1.png)
图3 set(h,'maxheadsize',2);
结束
18年2月
冰三点水
于天津
![](https://i-blog.csdnimg.cn/blog_migrate/3385a5a31c6386c4eb2c4b515659ac56.png)