matlab画出一维数组的数值折线图,并标记特定点

i=81;
sp=shuiping(i,:);
sp(sp<=5&sp>=-5)=0;


ss_t=tempshuiping2(i,:);


x=(1:1:256);
str=[repmat('',256,1) num2str(x')];
%plot(x,te_1,'-*')
 plot(sp,'-*');
 text(x,sp,cellstr(str));
 for d=1:1:256
     if ss_t(d)>=1
    % text(g,sp,cellstr(str));
    text(x(d),sp(d),'o','color','r');
     end
 end

版权声明:本文为lingmengxiaotong原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。