怎么用matlab在一张图上画多个箭头

就像这种图怎么画?已经知道每个箭头的起点和终点

arrow = @(s,e)quiver(s(1), s(2), e(1)-s(1), e(2)-s(2), 0);

figure; hold on
for i = 1:10
    s = rand(2, 1);
    e = rand(2, 1);
    arrow(s, e)
end

温馨提示:答案为网友推荐,仅供参考
相似回答