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

How to insert an upward arrow in MATLAB Graph?

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

可以使用 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);