matlab 修改 设置 三维箭头大小 尺寸

时间:2024-03-15 21:27:24
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
其中h是该箭头的句柄,我们设置h的相关参数就可以修改箭头的大小。图1、图2和图3分别为set的参数为0,1,2时对应的箭头。
matlab 修改 设置 三维箭头大小 尺寸
图1 set(h,'maxheadsize',0);
matlab 修改 设置 三维箭头大小 尺寸
图2 set(h,'maxheadsize',1);
matlab 修改 设置 三维箭头大小 尺寸
图3 set(h,'maxheadsize',2);
结束
18年2月
冰三点水
于天津