Changeset 12649
- Timestamp:
- 07/18/12 10:26:20 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/utils/Model/loadmodel.m
r10184 r12649 12 12 error('loadmodel usage error: md=loadmodel(path)'); 13 13 end 14 14 15 %check existence 15 if ~exist(path) 16 if exist(path,'file') 17 %do nothing 18 elseif exist([path '.mat'],'file') 19 %add extension 20 path = [path '.mat']; 21 else 16 22 error(['loadmodel error message: file ' path ' does not exist']); 17 23 end
Note:
See TracChangeset
for help on using the changeset viewer.