MATLAB Functions Help Desk

addpath

Purpose

Add directories to MATLAB's search path

Syntax

Description

addpath ('directory') prepends the specified directory to MATLAB's current search path.

addpath ('dir1','dir2','dir3',...) prepends all the specified directories to the path.

addpath (...,'-flag') either prepends or appends the specified directories to the path depending the value of flag:

0 or begin

Prepend specified directories

1 or end

Append specified directories

Examples

See Also

path        Control MATLAB's directory search path

rmpath      Remove directories from MATLAB's search path



[ Previous | Help Desk | Next ]