title: missing figure toolbar and possible change in global variables
body: <p>Today i tried adding a slider below my graph, so different graphs would be drawn when you slide it. Eventually i got all of this to work perfectly fine, however i still have two small issues.
  On top of the figure with the slider, the figure toolbar is gone. It can easily be added by clicking view -> figure toolbar at the top in the figure itself. However to do this everytime is a bit tedious. And when i google'd for the problem, the results where are all guides to create custom toolbars. I just want to add the default toolbar back, it was fine. But i do not know how to do that. Typing 'uitoolbar' gives an empty one. But i am not sure how to fill it with the default icons.</p>
  
  <p>And the second problem i ran into;
  The main script calls in the end for a function, this function then creates the new graph with the slider. However herefore i needed to transfer the matrix of data to plot from the main script to the function, so i made the matrix a global variable. However as soon as the function is called, matlab gives me this error (once for each global variable):</p>
  
  <pre><code>&gt; In xxxx at 270 
  Warning: The value of local variables may have been changed to match the globals.     
  Future versions of MATLAB will require that you declare a variable to be global before you use that variable. 
  </code></pre>
  
  <p>Before i call the function i type </p>
  
  <pre><code>  global xL yL zL p
  </code></pre>
  
  <p>which are the data required to plot. Then the first line in the function file is this same line again. The data seems to be transmitted fine and the graph shows the correct plot.
  Is this some error i can just ignore then? Since everything works as it should? Or what does it mean exactly?</p>