1 function [x] = cumsumskipnan(x, DIM)
2 % CUMSUMSKIPNAN Cumulative sum while skiping NaN's.
3 % If DIM is omitted, it defaults to the first non-singleton dimension.
5 % Y = cumsumskipnan(x [,DIM])
8 % DIM dimension (default: [])
11 % see also: CUMSUM, SUMSKIPNAN
14 % This program is free software; you can redistribute it and/or modify
15 % it under the terms of the GNU General Public License as published by
16 % the Free Software Foundation; either version 3 of the License, or
17 % (at your option) any later version.
19 % This program is distributed in the hope that it will be useful,
20 % but WITHOUT ANY WARRANTY; without even the implied warranty of
21 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 % GNU General Public License for more details.
24 % You should have received a copy of the GNU General Public License
25 % along with this program; If not, see <http://www.gnu.org/licenses/>.
28 % Copyright (C) 2011 by Alois Schloegl <alois.schloegl@gmail.com>
29 % This function is part of the NaN-toolbox
30 % http://pub.ist.ac.at/~schloegl/matlab/NaN/
33 %%% TODO: implement as mex-function