如何在Matlab中绘制箭头? [英] How to draw an arrow in Matlab?

查看:176
本文介绍了如何在Matlab中绘制箭头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Matlab图形中绘制箭头,但没有成功.

I'm trying to draw an arrow in matlab graph, without any success.

代码示例:

function [ output_args ] = example( input_args )

figure ('Name', 'example');
x = [10 30]
y = [10 30]
xlim([1, 100])
ylim([1, 100])
arrow (x, y) ???
end

matlab中是否有任何可以绘制箭头的函数? 谢谢

Is there any function in matlab that can draw arrow ? Thanks

推荐答案

您可以使用(有据可查的) DaVinci Draw工具箱(完整披露:我编写/出售了工具箱,尽管箭头是免费的).示例语法和示例输出如下.

You can use the (well-documented) DaVinci Draw toolbox (full disclosure: I wrote/sell the toolbox, though arrows are free). Example syntax and example output are below.

davinci( 'arrow', 'X', [0 10], 'Y', [0 2], <plus-lots-of-options> )

这篇关于如何在Matlab中绘制箭头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆