1、在图框中加 文本方法 ------ text()函数
2、使用箭头标注------annotation()函数
X、Y是箭头的位置相对于整个方框的比例,
0.32,0.5\]是指:x坐标从整个图形32%的地方到50%的地方(从左到右) \[0.6,0.4\]是指:y坐标从60%的地方到40%的地方(从上到下) 举例: ```Matlab clc;clear;close all; t=linspace(1,2); f=t.^2; g=sin(2*pi*t); plot(t,f,'k-',t,g,'or'); legend('t^2','sin(2\pit)'); title('Mini assignment'); xlabel('Time(ms)'); ylabel('f(t)'); xticks(1:0.2:2); str1 ='t^2'; text(1.14,2.1,str1,'Interpreter','latex'); annotation("arrow",'X',[0.3,0.5],'Y',[0.6,0.4]) ``` 