1function lastIndex = end(o, k, n) 2 3% Overloads the end method. 4% 5% INPUTS 6% - o [dseries] 7% - k [integer] 8% - n [integer] 9% 10% OUTPUTS 11% - lastIndex [integer] 12 13% Copyright (C) 2014-2017 Dynare Team 14% 15% This file is part of Dynare. 16% 17% Dynare is free software: you can redistribute it and/or modify 18% it under the terms of the GNU General Public License as published by 19% the Free Software Foundation, either version 3 of the License, or 20% (at your option) any later version. 21% 22% Dynare is distributed in the hope that it will be useful, 23% but WITHOUT ANY WARRANTY; without even the implied warranty of 24% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25% GNU General Public License for more details. 26% 27% You should have received a copy of the GNU General Public License 28% along with Dynare. If not, see <http://www.gnu.org/licenses/>. 29 30assert(k==1 && n==1, 'dseries::end: Wrong indexing!'); 31lastIndex = vobs(o);