comparison scripts/strings/mat2str.m @ 7016:93c65f2a5668

[project @ 2007-10-12 06:40:56 by jwe]
author jwe
date Fri, 12 Oct 2007 06:41:26 +0000
parents 8b0cfeb06365
children a1dbe9d80eee
comparison
equal deleted inserted replaced
7015:0a708692d51d 7016:93c65f2a5668
1 ## Copyright (C) 2002 Rolf Fabian <fabian@tu-cottbus.de> 1 ## Copyright (C) 2002 Rolf Fabian
2 ## 2 ##
3 ## This file is part of Octave. 3 ## This file is part of Octave.
4 ## 4 ##
5 ## Octave is free software; you can redistribute it and/or modify it 5 ## Octave is free software; you can redistribute it and/or modify it
6 ## under the terms of the GNU General Public License as published by 6 ## under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation; either version 2, or (at your option) 7 ## the Free Software Foundation; either version 3 of the License, or (at
8 ## any later version. 8 ## your option) any later version.
9 ## 9 ##
10 ## Octave is distributed in the hope that it will be useful, but 10 ## Octave is distributed in the hope that it will be useful, but
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of 11 ## WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 ## General Public License for more details. 13 ## General Public License for more details.
14 ## 14 ##
15 ## You should have received a copy of the GNU General Public License 15 ## You should have received a copy of the GNU General Public License
16 ## along with Octave; see the file COPYING. If not, write to the Free 16 ## along with Octave; see the file COPYING. If not, see
17 ## Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17 ## <http://www.gnu.org/licenses/>.
18 ## 02110-1301, USA.
19 18
20 ## -*- texinfo -*- 19 ## -*- texinfo -*-
21 ## @deftypefn {Function File} {@var{s} =} mat2str (@var{x}, @var{n}) 20 ## @deftypefn {Function File} {@var{s} =} mat2str (@var{x}, @var{n})
22 ## @deftypefnx {Function File} {@var{s} =} mat2str (@dots{}, 'class') 21 ## @deftypefnx {Function File} {@var{s} =} mat2str (@dots{}, 'class')
23 ## 22 ##
46 ## @end group 45 ## @end group
47 ## @end example 46 ## @end example
48 ## 47 ##
49 ## @seealso{sprintf, int2str} 48 ## @seealso{sprintf, int2str}
50 ## @end deftypefn 49 ## @end deftypefn
50
51 ## Author: Rolf Fabian <fabian@tu-cottbus.de>
51 52
52 function s = mat2str (x, n, cls) 53 function s = mat2str (x, n, cls)
53 54
54 if (nargin < 2 || isempty (n)) 55 if (nargin < 2 || isempty (n))
55 ## Default precision 56 ## Default precision