rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
eval_coefficients.m
Go to the documentation of this file.
1 function res = eval_coefficients(funcs, model)
2 %function res = eval_coefficients(funcs, model)
3 % Concatenation of multiple parametric coefficient evaluations.
4 %
5 % Multiple parametric coefficients are evaluated at the same
6 % argument. The result vectors are concatenated. This function is
7 % used in Fem.Assembly.operator().
8 %
9 % Parameters:
10 % funcs: cell array containing function handles corresponding to
11 % parametric coefficients.
12 % model: structure which is used as input for the coefficient
13 % functions.
14 %
15 % Return values:
16 % res: column vector of all coefficient evaluations.
17 
18 res_tmp = cell(1, length(funcs));
19 
20 for q = 1:length(funcs)
21 
22  res_tmp{q} = funcs{q}(model);
23  res_tmp{q} = res_tmp{q}(:)';
24 end
25 
26 res = [res_tmp{:}]';
27 
28 end