(1) save output data in .csv files rather than .xlsx files, as Mac doesn't support the two functions of xlswrite.
(2) Parameters also are saved in csv file.
(3) change the figure margin control, so that the margin can be set to zero.