annotate scripts/deprecated/sphcat.m @ 13977:08ae07e40d4f

Only run uimenu tests if FLTK toolkit is available (Bug #34908) * graphics_toolkit.m: Correct @deftypefn to @deftypefnx for Texinfo to build * allchild.m: Eliminate unnecessary for loop. Only run test if FLTK toolkit is available. * findall.m, uimenu.m: Only run test if FLTK toolkit is available.
author Rik <octave@nomad.inbox5.com>
date Fri, 02 Dec 2011 14:48:45 -0800
parents fd0a3ac60b0e
children 72c96de7a403
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11523
fd0a3ac60b0e update copyright notices
John W. Eaton <jwe@octave.org>
parents: 11390
diff changeset
1 ## Copyright (C) 2004-2011 David Bateman and Andy Adler
11390
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
2 ##
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
3 ## This file is part of Octave.
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
4 ##
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
5 ## Octave is free software; you can redistribute it and/or modify it
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
6 ## under the terms of the GNU General Public License as published by
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
7 ## the Free Software Foundation; either version 3 of the License, or (at
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
8 ## your option) any later version.
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
9 ##
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
10 ## Octave is distributed in the hope that it will be useful, but
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
13 ## General Public License for more details.
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
14 ##
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
15 ## You should have received a copy of the GNU General Public License
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
16 ## along with Octave; see the file COPYING. If not, see
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
17 ## <http://www.gnu.org/licenses/>.
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
18
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
19 ## -*- texinfo -*-
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
20 ## @deftypefn {Function File} {@var{y} =} sphcat (@var{a1}, @var{a2}, @dots{}, @var{aN})
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
21 ## Return the horizontal concatenation of sparse matrices. This function
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
22 ## is obselete and @code{horzcat} should be used instead.
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
23 ## @seealso {horzcat, spvcat, vertcat, cat}
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
24 ## @end deftypefn
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
25
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
26 function y = sphcat (varargin)
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
27 persistent warned = false;
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
28 if (! warned)
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
29 warned = true;
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
30 warning ("Octave:deprecated-function",
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
31 "sphcat is obsolete and will be removed from a future version of Octave; please use horzcat instead");
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
32 endif
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
33
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
34 y = horzcat (varargin{:});
7ca273af4309 Deprecate sphcat and spvcat functions.
Rik <octave@nomad.inbox5.com>
parents:
diff changeset
35 endfunction