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