This function saves the current workspace to a .mat-File with the name composed of the current script and actual time and date. Enter "mfilename" as input to use the script's filename this function is run in.
This saves the local variables "actual_date, date_format_out, actual_date_string, name_workspace" in a MAT file. But why would you do this? Better use this function only to create the file name and call SAVE in the caller directly.