root/gliderproc/trunk/MATLAB/opnml/basics/isdir.m
Revision 495 (checked in by cbc, 12 years ago) |
---|
Line | |
---|---|
1 | function out=isdir(str) |
2 | %ISDIR Test to see if a directory exists |
3 | % isdir <directoryname> returns 1 if |
4 | % the directory exists, 0 otherwise. |
5 | % Specify either the absolute path |
6 | % or path relative to the current dir. |
7 | |
8 | %dt 10/27/94 |
9 | |
10 | a=pwd; |
11 | out = 1; |
12 | eval(['cd ',str],'out=0;'); |
13 | cd(a) |
Note: See TracBrowser for help on using the browser.