In linux, unless you are root, you are not allowed to write in the matlab's folder.
But you can drop your folder with the toolbox in your home directory (or any folder your are allowed to). Then you have to add the corresponding path in the matlab's list of paths with the command addpath('your_path').
To automatically add the path in the matlab's list of paths, you can create the m-file startup.m in your home directory and add the command addpath('your_path') in the script: each type you will start matlab from this home directory, it will automatically launches the script startup.m.
first of all Thanks Philippe Blanc Sir for giving your precious time and suggestion. I have already tried to use the scripts using add path option,
They work fine just after doing add path But they stop working whenever i close my session and start matlab again. Moreover i want to add SPM toolbox and Anatomy toolbox simultaneously. If i add Spm then anatomy doesn't work and if i add anatomy then som doesn't work.