fixed bug in MATLAB MEX interface related to fixed parameters