Home > atmlab > handy > homedir.m

homedir

PURPOSE ^

HOMEDIR Returns users home directory

SYNOPSIS ^

function d = homedir

DESCRIPTION ^

 HOMEDIR   Returns users home directory

 FORMAT   d = homedir
        
 OUT   d   String with path of home directory.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

homedir.m

SOURCE CODE ^

0001 % HOMEDIR   Returns users home directory
0002 %
0003 % FORMAT   d = homedir
0004 %
0005 % OUT   d   String with path of home directory.
0006 
0007 % 2009-05-24   Created by Patrick Eriksson.
0008 
0009 
0010 function d = homedir
0011 
0012 
0013 d = getenv('HOME');
0014 
0015 if isempty(d)
0016   error('atmlab:homedir', 'No home-directory defined');
0017 end

Generated on Mon 15-Sep-2014 13:31:28 by m2html © 2005