I am in the progress of developing a MATLAB program that is growing constantly. It started out as a collection of scripts but has gotten bigger and bigger. Right now everything is in one big folder but to separate independent modules I want to divide them into subfolders. There is some dependency between modules so I want to be able to access functions from different modules without having to copy the MATLAB files.
Is there an alternative to adding all directories to the searchpath? How can I keep the codebase of a bigger MATLAB project tidy?