


Computes the number of columns of a matrix NOTE: this function is builtin in Octave


0001 function c = columns(M) 0002 % Computes the number of columns of a matrix 0003 % NOTE: this function is builtin in Octave 0004 0005 % Copyright (C) 2008-2009 Dynare Team 0006 % 0007 % This file is part of Dynare. 0008 % 0009 % Dynare is free software: you can redistribute it and/or modify 0010 % it under the terms of the GNU General Public License as published by 0011 % the Free Software Foundation, either version 3 of the License, or 0012 % (at your option) any later version. 0013 % 0014 % Dynare is distributed in the hope that it will be useful, 0015 % but WITHOUT ANY WARRANTY; without even the implied warranty of 0016 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0017 % GNU General Public License for more details. 0018 % 0019 % You should have received a copy of the GNU General Public License 0020 % along with Dynare. If not, see <http://www.gnu.org/licenses/>. 0021 0022 c = size(M,2);