title: MATLAB - get current workspace
body: <p>Inside of an function I want to do <code>assignin(ws, 'var', val)</code>, but at this point I don't know the workspace ws, which is currently displayed in the workspace window inside the matlab window. I am looking for a statement which replaces my <code>ws</code> in the statement above.</p>
  
  <p>Probably a simple and a frequently asked question, but i didn't find an answer.</p>