update MatString and Mexoutput