title: octave history command - variable as filename
body: <p>i want to write little helper functions that stores and loads the octave session.</p>
  
  <pre><code>function restoreSession(filename)
    history -r strcat('./states/',filename,'.history');
    load("-binary", strcat('./states/',filename,'.data')) 
  endfunction
  
  
  function saveSession(filename)
    history -w strcat('./states/',filename,'.history');
    save("-binary", strcat('./states/',filename,'.data')) 
  endfunction
  </code></pre>
  
  <p>The save/load command works well. 
  My Problem is that the history command seems not to evaulate the argument.
  it prodces the following error:</p>
  
  <pre><code>  syntax error
  
  &gt;&gt;&gt;   history -r strcat('./states/',filename,'.history');
                                                         ^
  </code></pre>
  
  <p>I already tried to use a temporary var for the path but in this case it only interprets the variable name as filename and complains about the missing file.</p>
  
  <p>Does anybody has an idea how to solve this?</p>