Thursday 5 December 2013

How to include folders into Matlab library search?

If we want to call some Matlab functions which are there in a separate folder (these files are not in the current working directory), then we can use 'addpath' command add that folder to library-search folders.

Example: If 'Acquisition' is a folder inside the working directory, then:

addpath Acqusition;

 %will add the folder and we can directly call the functions that are inside %'Acquisition' folder.

or, we can give the full absolute path of the folder:

addpath F:\Users\Naveen\UofC\638\Lab2\Work_code\Acqusition;


No comments:

Post a Comment