title: clear base workspace variable from within function
body: <p>With the following code I've added variables into the base workspace:</p>
  
  <pre><code>function data_startup()
  bdclose all;
  data=load(fullfile('B', 'C', 'data.mat')); 
  file_variables=fieldnames(data);% get the field names as cell array
  for ii=1:length(file_variables)
       assignin('base', file_variables{ii}, data.(file_variables{ii}));
  end
  </code></pre>
  
  <p>Now, I would like to clear variables from the base workspace, I've tried :</p>
  
  <pre><code>evalin('base','clear file_variables');
  </code></pre>
  
  <p>But this is not working :(</p>