title: Giving a variable name as a function input and obtaining its value as an output
body: <p>I have lots of variables in the workspace in MATLAB and I have to create some statistics through a function. I need to enter the name of the variable as a function input and I need to return its value in the function and then process it.</p>
  
  <pre><code>varName='Sa'
  function [ someStatistics ] = AnalyzeThis (varName);
  </code></pre>
  
  <p>So, in this <code>AnalyzeThis</code> function, I need to obtain the value of <code>Sa</code> (which is a one-dimensional array). How can I do that?</p>