Mercurial > octave-nkf
comparison scripts/sparse/spvcat.m @ 5164:57077d0ddc8e
[project @ 2005-02-25 19:55:24 by jwe]
author | jwe |
---|---|
date | Fri, 25 Feb 2005 19:55:28 +0000 |
parents | |
children | 4c8a2e4e0717 |
comparison
equal
deleted
inserted
replaced
5163:9f3299378193 | 5164:57077d0ddc8e |
---|---|
1 ## Copyright (C) 2004 David Bateman & Andy Adler | |
2 ## | |
3 ## This program is free software; you can redistribute it and/or modify | |
4 ## it under the terms of the GNU General Public License as published by | |
5 ## the Free Software Foundation; either version 2 of the License, or | |
6 ## (at your option) any later version. | |
7 ## | |
8 ## This program is distributed in the hope that it will be useful, | |
9 ## but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 ## GNU General Public License for more details. | |
12 ## | |
13 ## You should have received a copy of the GNU General Public License | |
14 ## along with this program; if not, write to the Free Software | |
15 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
16 | |
17 ## -*- texinfo -*- | |
18 ## @deftypefn {Function File} {@var{y} =} spvcat (@var{a1}, @var{a2}, @dots{}, @var{aN}) | |
19 ## Return the vertical concatenation of sparse matrices. This function | |
20 ## is obselete and @code{vertcat} should be used | |
21 ## @end deftypefn | |
22 ## @seealso {sphcat, vertcat, horzcat, cat} | |
23 | |
24 function y = spvcat (varargin) | |
25 | |
26 persistent spvcat_warned = false; | |
27 | |
28 if (!spvcat_warned) | |
29 spvcat_warned = true; | |
30 warning ("spvcat: This function is depreciated. Use vertcat instead"); | |
31 endif | |
32 | |
33 y = vertcat (varargin{:}); | |
34 endfunction |