rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
discrete_boundary_values.m
Go to the documentation of this file.
1 function res = discrete_boundary_values(val,varargin)
2 %function res = discrete_boundary_values(val,varargin)
3 % Convert a boundary function with global evaluation to local evaluation
4 
5 if nargin == 6
6  lloc = varargin{4};
7  if numel(lloc) == 0
8  glob = [];
9  else
10  loc = llocal2local(varargin{1},varargin{3},lloc);
11  glob = local2global(varargin{1},varargin{2},loc);
12  end;
13 elseif nargin == 3
14  glob = varargin{1};
15 else
16  error('incorrect number of inputs');
17 end;
18 res = val(glob,varargin{end});
19 
20 end
function res = discrete_boundary_values(val, varargin)
Convert a boundary function with global evaluation to local evaluation.