xxsimSetParameters - sets specified parameters. Syntax: retval = xxsimSetParameters(names, values) Inputs: names = names of the parameters to be set. values = the new values of the parameters. Outputs: retval = returns true if the parameters are set properly, false otherwise. Examples: xxsimSetParameters({'Controller_Continuous.kp', 'Controller_Discrete.kp'},{3,4}); - sets 'Controller_Continuous.kp' and 'Controller_Discrete.kp' to 3 and 4 respectively. See also: xxsimSetVariables, xxsimGetParameters Author: Controllab Products B.V. email: info@controllab.nl Website: http://www.controllab.nl September 2013
0001 function retval = xxsimSetParameters(names, values) 0002 % xxsimSetParameters - sets specified parameters. 0003 % 0004 % Syntax: 0005 % retval = xxsimSetParameters(names, values) 0006 % 0007 % Inputs: 0008 % names = names of the parameters to be set. 0009 % values = the new values of the parameters. 0010 % 0011 % Outputs: 0012 % retval = returns true if the parameters are set properly, false otherwise. 0013 % 0014 % Examples: 0015 % xxsimSetParameters({'Controller_Continuous.kp', 'Controller_Discrete.kp'},{3,4}); 0016 % - sets 'Controller_Continuous.kp' and 'Controller_Discrete.kp' to 3 and 4 respectively. 0017 % 0018 % See also: xxsimSetVariables, xxsimGetParameters 0019 % 0020 % Author: Controllab Products B.V. 0021 % email: info@controllab.nl 0022 % Website: http://www.controllab.nl 0023 % September 2013 0024 0025 %------------- BEGIN CODE -------------- 0026 retval = xxsimSetVariables(names,values); 0027 end 0028 %------------- END OF CODE --------------