Changeset 1320
- Timestamp:
- 07/14/09 15:02:29 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/utils/Model/loadmodel.m
r359 r1320 1 function loadmodel(varargin)1 function md=loadmodel(path) 2 2 %LOADMODEL - load a model using built-in load module 3 3 % … … 5 5 % 6 6 % Usage: 7 % loadmodel(varargin)7 % md=loadmodel(path) 8 8 9 path=varargin{1}; 9 if nargout~=1, 10 error('loadmodel usage error: md=loadmodel(path)'); 11 end 12 10 13 try, 11 14 s=load(path,'-mat'); … … 19 22 clear md2; 20 23 end 21 assignin('caller',fieldname,md);24 %assignin('caller',fieldname,md); 22 25 catch 23 26 error(['could not load model ' path]);
Note:
See TracChangeset
for help on using the changeset viewer.