MATLAB: How to add a folder permanently to matlab path

addpathgenpath

I am using addpath to add specified folders to matlab path, but it removes the folders from the matlab path everytime the application closes. I want to add that particular folder permanently to matlab path, so that I don't have to add it again everytime i run the application. How can it be done??
Any help is appreciated.

Best Answer

You can put the addpath statement to startup.m