set(gca,'YTICK',[0 13.6 20 40]);plot(x ,SNR_db,'Color',color,'LineStyle',style );lgd = legend( 'theta 30,FOV 50','theta 40,FOV 20','theta 40,FOV 30','with less error','ideal case');endhold offhline = refline(0,13.6);set(hline,'color','k');%set(hline,'Marker','o');
set(hline,'LineStyle','-');
MATLAB: Hi, Can someone tell me how to remove (data1 that caused by the reference line) from legend
legend
Best Answer