Changeset 1320


Ignore:
Timestamp:
07/14/09 15:02:29 (15 years ago)
Author:
Eric.Larour
Message:

loadmodel now more restricted in its use

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/utils/Model/loadmodel.m

    r359 r1320  
    1 function loadmodel(varargin)
     1function md=loadmodel(path)
    22%LOADMODEL - load a model using built-in load module
    33%
     
    55%
    66%   Usage:
    7 %      loadmodel(varargin)
     7%      md=loadmodel(path)
    88
    9 path=varargin{1};
     9if nargout~=1,
     10        error('loadmodel usage error: md=loadmodel(path)');
     11end
     12
    1013try,
    1114        s=load(path,'-mat');
     
    1922                clear md2;
    2023        end
    21         assignin('caller',fieldname,md);
     24        %assignin('caller',fieldname,md);
    2225catch
    2326        error(['could not load model ' path]);
Note: See TracChangeset for help on using the changeset viewer.