Mercurial > hg > octave-nkf
annotate scripts/deprecated/str2mat.m @ 10928:a93efb08dc7f
ChangeLog (scipts) typos.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Tue, 31 Aug 2010 07:41:18 -0400 |
parents | 923c7cb7f13f |
children | fd0a3ac60b0e |
rev | line source |
---|---|
8920 | 1 ## Copyright (C) 1996, 1998, 1999, 2000, 2002, 2004, 2005, 2006, 2007, |
2 ## 2008, 2009 Kurt Hornik | |
8372
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
3 ## |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
4 ## This file is part of Octave. |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
5 ## |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
6 ## Octave is free software; you can redistribute it and/or modify it |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
7 ## under the terms of the GNU General Public License as published by |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
8 ## the Free Software Foundation; either version 3 of the License, or (at |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
9 ## your option) any later version. |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
10 ## |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
11 ## Octave is distributed in the hope that it will be useful, but |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
12 ## WITHOUT ANY WARRANTY; without even the implied warranty of |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
14 ## General Public License for more details. |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
15 ## |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
16 ## You should have received a copy of the GNU General Public License |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
17 ## along with Octave; see the file COPYING. If not, see |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
18 ## <http://www.gnu.org/licenses/>. |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
19 |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
20 ## -*- texinfo -*- |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
21 ## @deftypefn {Function File} {} str2mat (@var{s_1}, @dots{}, @var{s_n}) |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
22 ## Return a matrix containing the strings @var{s_1}, @dots{}, @var{s_n} as |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
23 ## its rows. Each string is padded with blanks in order to form a valid |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
24 ## matrix. |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
25 ## |
9209
923c7cb7f13f
Simplify TeXinfo files by eliminating redundant @iftex followed by @tex construction.
Rik <rdrider0-list@yahoo.com>
parents:
8920
diff
changeset
|
26 ## This function is modelled after @sc{matlab}. In Octave, you can create |
8372
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
27 ## a matrix of strings by @code{[@var{s_1}; @dots{}; @var{s_n}]} even if |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
28 ## the strings are not all the same length. |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
29 ## @end deftypefn |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
30 |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
31 ## Author: Kurt Hornik <Kurt.Hornik@wu-wien.ac.at> |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
32 ## Adapted-By: jwe |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
33 |
8818
8dee145c777d
fix "Deprecated in version" comments in deprecated fuctions
John W. Eaton <jwe@octave.org>
parents:
8372
diff
changeset
|
34 ## Deprecated in version 3.2 |
8dee145c777d
fix "Deprecated in version" comments in deprecated fuctions
John W. Eaton <jwe@octave.org>
parents:
8372
diff
changeset
|
35 |
8372
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
36 function retval = str2mat (varargin) |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
37 persistent warned = false; |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
38 if (! warned) |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
39 warned = true; |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
40 warning ("Octave:deprecated-function", |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
41 "str2mat is obsolete and will be removed from a future version of Octave; please use char instead."); |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
42 endif |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
43 |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
44 retval = char (varargin{:}); |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
45 |
8dff9cba15fe
move str2mat to deprecated and make it a simple wrapper around char
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
diff
changeset
|
46 endfunction |