title: How to pass a variable from one function into another using MatLab?
body: <p>Let's say I have some function <code>import_data()</code> and inside of this function I am creating 2 variables: <code>response_values</code> and <code>file_to_get</code></p>
  
  <pre><code>file_to_get = uigetfile({'*.csv*'}, 'Select the CSV File',...
  '\\pfile01thn\bbruffey$\My Documents\analysis data\full files\...
  Raw Stats Data full file only');
  
  response_values = zeros(numel(C),numCols);
  for i=1:numel(C)
      v = textscan(C{i}, '%s', 'Delimiter',',');
      v = str2double(v{1}(4:end));
      response_values(i,1:numel(v)) = v;
  end
  </code></pre>
  
  <p>I then need these variables passed into another function <code>MS_Banding_Streaking()</code></p>
  
  <p>How could this be done? (I'm using globals at the moment which is extremely bad practice.</p>