t=linspace(0,5,100);x=t.^2;%上面是数据plot(t,x,'-')%为了清除,不加*hold on%保持plot(t(1:10:100),x(1:10:100),'*')%每隔10个点加一个*h=plot(t(1:2),x(1:2),'-*')%专门做一个句柄用于标注,画的就是前两个点legend(h,'就是这样')