how to add path to matlab permanently code example Example: matlab add to path addpath('matlab/myfiles') savepath matlab/myfiles/pathdef.m