how to add course directory to search path?

4 views (last 30 days)
hello . . i tried to use lbg compression algorithm. in that it mention'The problems for this computer lesson deals with quantization (both scalar and vector quantization). We use Matlab to solve the problems. In order for Matlab to nd the images and some of the functions, you must add the course directory to the search path:
>> addpath /site/edu/icg/tsbk02/matlab/
but i am unable to understand how to add course directory to search path. can anyone tell me what is meant by course directory and search path and the way by which i can add course directory to search path.

Answers (2)

Walter Roberson
Walter Roberson on 18 Sep 2012
At the MATLAB command window, give the command
addpath /site/edu/icg/tsbk02/matlab/
  2 Comments
Reddi Santosh
Reddi Santosh on 18 Sep 2012
Edited: Reddi Santosh on 18 Sep 2012
I already tried this. . but it is giving an error and i am unable to understand what that error means. .
Warning: Name is nonexistent or not a directory: \site\edu\icg\tsbk02\matlab. > In path at 110 In addpath at 87
Walter Roberson
Walter Roberson on 18 Sep 2012
If you are running MATLAB on a Linux machine, you need to use / instead of \ between the parts. If you are typing it in with the / and the message is reporting with \ then it implies that you are running on an MS Windows machine but they expect you to be running on a Linux machine, possibly on a Linux server. They might be expecting you to run a program such as VNC to connect to a Linux server.

Sign in to comment.


Ken Atwell
Ken Atwell on 19 Sep 2012
Presumably you've downloaded this software, or it is available on a local network you have access to. If not, get the software first. If addpath is causing you trouble, try typing pathtool instead. Click the "Add Folder" button and navigate graphically to the "msbk02/matlab" folder, wherever this may be on your system.

Categories

Find more on Search Path in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!