matlab wrapper for the optimization of parameters for experiments