1 function model = set_mu_default(model,mu,dummy)
2 %
function model = set_mu_default(model,mu)
4 %
function setting the parameter vector mu in the model
struct
5 % required fields of model:
6 % mu_names : cell array of strings, indicating the fields, which are set
7 % by the current routine
10 % mu :
new parameter vector `\mu`
12 % Bernard Haasdonk 20.7.2006
19 warning(
'set_mu called without return argument!');
22 if length(mu(:))~=length(model.mu_names)
23 error('dimensionality of mu does not fit to model.mu_names');
27 model.(model.mu_names{i}) = mu(i);