title: How to turn off vertical y axis bar in MATLAB plot?
body: <p>How do I turn off the black line on a vertical y-axis?</p>
  
  <p>I tried using the following to set its color to white so that it appears hidden. However, I am also using the grid lines, and if I do this they also turn white:</p>
  
  <pre><code>set(gca,'YColor',[1 1 1]);  % Sets y-axis and gridlines to white color (represented by '1 1 1')
  </code></pre>
  
  <p>I also found I can do the following to fix the issue:</p>
  
  <p><em><strong>Plot a white line exactly where the y-axis ranges</em></strong></p>
  
  <p>Any other ways to do this?</p>