Changes to save the output variable in a cell that is stored in a .mat file. Everytime is called the function with different parameters, the output variable is modified in the appropriate position according to such parameters.
Function to evaluate the system for differents parameters and to compute the overlap metrics and save it.