Shorthand for acado.Disturbance Example: >> Disturbance w; >> Disturbance w1 w2 w3 w4; Licence: This file is part of ACADO Toolkit - (http://www.acadotoolkit.org/) ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization. Copyright (C) 2008-2009 by Boris Houska and Hans Joachim Ferreau, K.U.Leuven. Developed within the Optimization in Engineering Center (OPTEC) under supervision of Moritz Diehl. All rights reserved. ACADO Toolkit is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. ACADO Toolkit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with ACADO Toolkit; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Author: David Ariens Date: 2010
0001 %Shorthand for acado.Disturbance 0002 % 0003 % Example: 0004 % >> Disturbance w; 0005 % >> Disturbance w1 w2 w3 w4; 0006 % 0007 % Licence: 0008 % This file is part of ACADO Toolkit - (http://www.acadotoolkit.org/) 0009 % 0010 % ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization. 0011 % Copyright (C) 2008-2009 by Boris Houska and Hans Joachim Ferreau, K.U.Leuven. 0012 % Developed within the Optimization in Engineering Center (OPTEC) under 0013 % supervision of Moritz Diehl. All rights reserved. 0014 % 0015 % ACADO Toolkit is free software; you can redistribute it and/or 0016 % modify it under the terms of the GNU Lesser General Public 0017 % License as published by the Free Software Foundation; either 0018 % version 3 of the License, or (at your option) any later version. 0019 % 0020 % ACADO Toolkit is distributed in the hope that it will be useful, 0021 % but WITHOUT ANY WARRANTY; without even the implied warranty of 0022 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0023 % Lesser General Public License for more details. 0024 % 0025 % You should have received a copy of the GNU Lesser General Public 0026 % License along with ACADO Toolkit; if not, write to the Free Software 0027 % Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 0028 % 0029 % Author: David Ariens 0030 % Date: 2010 0031 % 0032 function Disturbance( varargin ) 0033 0034 checkActiveModel; 0035 0036 if ~iscellstr( varargin ), 0037 error( 'Syntax is: Disturbance x' ); 0038 else 0039 0040 for k = 1 : nargin, 0041 VAR_NAME = varargin{k}; 0042 VAR_ASSIGN = acado.Disturbance(varargin{k}); 0043 0044 assignin( 'caller', VAR_NAME, VAR_ASSIGN ); 0045 end 0046 0047 end 0048 0049 end 0050