plot([700,700],[-2000,550],'--','lineWidth',1.5,'color',[48/255 151/255 164/255]);%cn0-ma
plot([1100,1100],[-2000,550],'--','lineWidth',1.5,'color',[48/255 151/255 164/255]);%cn0-ma
plot([1600,1600],[-2000,550],'--','lineWidth',1.5,'color',[48/255 151/255 164/255]);%cn0-ma
text(200,-1500,'Normal','color',[48/255 151/255 164/255]);
text(750,-1500,'Jamming','color',[48/255 151/255 164/255]);
text(1150,-1500,['Production ',sprintf('\n'),' Spoofing'],'color',[48/255 151/255 164/255]);
text(1700,-1500,['Forwarding ',sprintf('\n'),' Spoofing'],'color',[48/255 151/255 164/255]);
实现效果图
颜色可以通过修改数字,文字的位置需要自己设定坐标