用txt文本数据在matlab里面画了一幅图,如何在已知坐标的某点画上一个三角形符号啊

2025-03-01 13:09:36
推荐回答(3个)
回答1:

plot(...); % 用txt中的数据画图

hold on
plot([1 1], [3 3], 'Marker', '^' ) ; % 在你想要的位置画三角符号
hold off

这就可以了

回答2:

plot(.5,.4,'^')%.5和.4分别是横纵坐标

回答3:

用Marker吧
比如在 (1,3)点

plot([1 1], [3 3], 'Marker', '^' ) 即可