title: How to label line in Matlab plot
body: <p>I wrote a code plot 17 lines in the same graph. I want to label all line on the graph . Can u help me ?</p>
  
  <pre><code>clear all
  close all
  clc
  
  syms w
  wn=4000 %rad/s
  
  k=1
  for n=0:0.05:0.8
  
    w=0:10:1884;
    H=1./sqrt((1-(w/wn).^2)+(2*n*w/wn).^2);
    x=w/wn
  
    plot(x,H)
    title('Time versus Response Graph of n');
    xlabel('Time(s)');
    ylabel('Response(m)');
    k=k+1
    hold on
  end
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/tUmhY.jpg" alt="Figure"></p>
  
  <hr>
  
  <p>I want to clariy which value is equal to which line.</p>
  
  <p><a href="https://i.stack.imgur.com/x1ms3.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x1ms3.jpg" alt="enter image description here"></a></p>