rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
get_mu_default.m
1 function mu = get_mu_default(model)
2 %function mu = get_mu_default(model)
3 %
4 % function getting the current parameter vector mu in the model struct
5 %
6 % required fields of model:
7 % mu_names : cell array of strings, indicating the fields, whcih are read
8 % by the current routine
9 
10 % Bernard Haasdonk 20.7.2006
11 
12 mu = zeros(length(model.mu_names),1);
13 for i=1:length(mu(:))
14  mu(i) = model.(model.mu_names{i});
15 end;
16