Home > SPlaC v1_0 > InitPath.m

InitPath

PURPOSE ^

Initialization function to add all relevant directories to Matlab path

SYNOPSIS ^

function InitPath()

DESCRIPTION ^

 Initialization function to add all relevant directories to Matlab path
 Must be run once after starting Matlab and before running other
 scripts/functions

 This file is part of the SPlaC v1.0 package (copyright 2008)
 Check the README file for further information

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % get current directory
0002 sTmp=what;
0003 % add it and all subdirectory to matlab path
0004 addpath(genpath(sTmp.path));
0005 
0006 sMsg=sprintf('Directory : %s and all subdirectories added to Matlab path',sTmp.path);
0007 disp(sMsg);

This web page is part of the SPlaC package © 2008. Contact: Eric Le Ru
Generated on Wed 03-Dec-2008 11:10:14 by m2html © 2003 (adapted)