5164
|
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} =} sphcat (@var{a1}, @var{a2}, @dots{}, @var{aN}) |
|
19 ## Return the horizontal concatenation of sparse matrices. This function |
|
20 ## is obselete and @code{horzcat} should be used |
|
21 ## @end deftypefn |
|
22 ## @seealso {spvcat, vertcat, horzcat, cat} |
|
23 |
|
24 function y = sphcat (varargin) |
|
25 |
|
26 persistent sphcat_warned = false; |
|
27 |
|
28 if (!sphcat_warned) |
|
29 sphcat_warned = true; |
|
30 warning ("sphcat: This function is depreciated. Use horzcat instead"); |
|
31 endif |
|
32 |
|
33 y = horzcat (varargin{:}); |
|
34 endfunction |