title: In Octave, how to load variable and value from txt file ?
body: <p>First of all, thanks for helping me. 
  My question, lets say I have readme.txt file, and inside looks like below</p>
  
  <pre><code>a1 3
  b2 4
  c3 -2.3
  d23 55.6
  </code></pre>
  
  <p>Now, how can I make a function to load this txt file, so that in the Octave, I will <strong>directly</strong> have </p>
  
  <pre><code>a1=3
  b2=4
  c3=-2.3
  d23=55.6
  </code></pre>
  
  <p>Allow me say this again, DIRECTLY.  Once I use this function "readFunction("readme.txt")",  all those variables will be load, and ready to use. </p>
  
  <p>I tried [name, num] = textread ("readme.txt", "%s %f"), "num" is the numbers, but I don't know how to convert the cell "name" to variable name. e.g it's wrong if I do char(name(1)) = b(1).   (trying to do a1 = 3). </p>
  
  <p>Or maybe my way is just completely wrong?  Thanks for the help.</p>