/usr/share/freemat/toolbox/funfun/odeset.m is in freemat-data 4.0-5build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | function S=odeset(varargin)
n=length(varargin);
if(mod(n,2)==1)
error('odeset must have an even number of arguments.');
end
for j=1:2:n
switch(varargin{j})
case 'AbsTol'
S.AbsTol=varargin{j+1};
case 'RelTol'
S.RelTol=varargin{j+1};
case 'MaxStep'
S.MaxStep=varargin{j+1};
case 'InitialStep'
S.InitialStep=varargin{j+1};
case 'Stepper'
S.Stepper=varargin{j+1};
case 'Events'
S.Events=varargin{j+1};
case 'Projection'
S.Projection=varargin{j+1};
end
end
|