title: Initialize Variables in a Function
body: <p>In a <strong>SCRIPT</strong>, I'm able to initialize variables which is displayed as empty variables in the workspace:</p>
  
  <pre><code>mass = [];
  speed = [];
  velocity = [];
  </code></pre>
  
  <p>BUT when I place these same initialize variables in a <strong>FUNCTION</strong>, MATLAB does not recognize them and does not store them in the workspace.</p>
  
  <pre><code>function myvariables()
  
      mass = [];
      speed = [];
      velocity = [];
  </code></pre>
  
  <p>How can I execute initialize variables in a function?</p>