source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/BlueCCal/MultiCamSelfCal/MartinecPajdla/utils/file_exists.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 278 bytes
Line 
1%file_exists Detection, whether given file exists.
2%
3%  ex = file_exists(name)
4%
5%    name .... file name
6%    ex   .... logical value, if given file exist (0/1)
7
8function [ex] = file_exists(name);
9
10fid = fopen(name,'r');
11if fid < 0
12  ex = 0;
13else
14  fclose(fid);
15  ex = 1;
16end
17
Note: See TracBrowser for help on using the repository browser.