title: clear all from Simulink S-function
body: <p>I am trying to call clear all from a simulink Level 1 S-function. I've take a look over  <code>doc mexCallMATLAB</code> but I do not know how to use it. I've wanted to clear the work space after my function is called.</p>