% run usual startup script startups = which('startup', '-ALL'); if length(startups) > 1 run(startups{2}) end % Add this toolbox to the Matlab path oldpwd = pwd; cd .. addgenpath(pwd); cd(oldpwd); clear startups oldpwd ans