Recording using MATLAB to make a line chart when writing an academic paper It is more formal to use MATLAB to make a line chart when writing a paper. Record a simple applet

When writing a paper, it is more formal to make a line chart with MATLAB, and record a simple applet
[plain]  view plain copy  
  1.  x=5:5:50;  
  2.  a=[75.256,76.704,75.263,75.337,75.599,76.302,75.824,76.924,75.595,75.442];  
  3.  b=[72.112,70.768,68.63,68.201,64.067,61.717,61.476,61.561,61.066,61.586];  
  4.  plot(x,a,'*-r');  
  5.   hold on  
  6.  plot(x,b,'--.b');  
  7. axis([5,50,55,80])  
  8. set(gca,'XTick',[5:5:50]) % Change the x-axis coordinate interval display here The interval is 10  
  9. set(gca,'YTick',[55:5:80]) % Change the y-axis coordinate interval to display the interval here is 10  
  10. legend('sinx',0);   
  11. xlabel('The number of training')  
  12. ylabel('Evacuation time(s)')  

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325358348&siteId=291194637