如何在MATLAB Graph中插入向上箭头?

时间:2016-04-03 06:17:20

标签: matlab matlab-figure

我想在MATLAB中插入一个显示向上方向的箭头?这该怎么做? MATLAB文档中的标记样式中不包含箭头?

1 个答案:

答案 0 :(得分:1)

可以使用text插入箭头。 但是,需要提供适当位置的位置。

text(0.1,0.7,'\uparrow', 'color' ,'r','FontWeight','bold', 'Fontsize', 16);

text(0.2,0.7,'\downarrow', 'color' ,'r','FontWeight','bold', 'Fontsize', 16);

text(0.3,0.7,'\rightarrow', 'color' ,'r','FontWeight','bold', 'Fontsize', 16);

text(0.4,0.7,'\leftarrow', 'color' ,'r','FontWeight','bold', 'Fontsize', 16);