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 , 14 years ago | |
---|---|
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 | |
8 | function [ex] = file_exists(name); |
9 | |
10 | fid = fopen(name,'r'); |
11 | if fid < 0 |
12 | ex = 0; |
13 | else |
14 | fclose(fid); |
15 | ex = 1; |
16 | end |
17 |
Note: See TracBrowser
for help on using the repository browser.