manual typos
Thomas Weber
thomas.weber.mail at gmail.com
Tue Sep 9 04:01:43 CDT 2008
Am Dienstag, den 09.09.2008, 09:21 +0200 schrieb Francesco Potorti`:
> In the 3.0.1 manual, at the "6.2.1 Creating Cell Array" page, I read:
>
> -- Loadable Function: C = num2cell (M, D)
> Convert to matrix M into a cell array. If D is defined the value C
> _____________^^
>
> is of dimension 1 in this dimension and the elements of M are
> placed in slices in C.
>
> to --> the
>
> moreover, I would use DIM rather than D, similarly to what is done for
> the shift function, and would put a comma after the word "defined".
>
>
> Later on:
> -- Loadable Function: B = mat2cell (A, R)
> Converts the matrix A to a cell array If A is 2-D, then it is
>
> A full stop is missing before "If".
Changesets attached (I missed the 's' in the first convert in the first
try, though).
No changelog entry, as the changes are trivial.
Thomas
-------------- next part --------------
# HG changeset patch
# User Thomas Weber <thomas.weber.mail at gmail.com>
# Date 1220950434 -7200
# Node ID 870248bfde63d86c5cba2a7a522c1d4e647708dc
# Parent 6a292b0fa88c04abd1f2390925c8982ac64c6264
Typo in num2cell's description
diff --git a/src/DLD-FUNCTIONS/cellfun.cc b/src/DLD-FUNCTIONS/cellfun.cc
--- a/src/DLD-FUNCTIONS/cellfun.cc
+++ b/src/DLD-FUNCTIONS/cellfun.cc
@@ -527,7 +527,7 @@
"-*- texinfo -*-\n\
@deftypefn {Loadable Function} {@var{c} =} num2cell (@var{m})\n\
@deftypefnx {Loadable Function} {@var{c} =} num2cell (@var{m}, @var{d})\n\
-Convert to matrix @var{m} into a cell array. If @var{d} is defined the\n\
+Convert the matrix @var{m} into a cell array. If @var{d} is defined the\n\
value @var{c} is of dimension 1 in this dimension and the elements of\n\
@var{m} are placed in slices in @var{c}.\n\
@seealso{mat2cell}\n\
# HG changeset patch
# User Thomas Weber <thomas.weber.mail at gmail.com>
# Date 1220950511 -7200
# Node ID c1fc8550852dbadca5204f3c7258faf68f4273ef
# Parent 870248bfde63d86c5cba2a7a522c1d4e647708dc
stylistic changes in num2cell's description
diff --git a/src/DLD-FUNCTIONS/cellfun.cc b/src/DLD-FUNCTIONS/cellfun.cc
--- a/src/DLD-FUNCTIONS/cellfun.cc
+++ b/src/DLD-FUNCTIONS/cellfun.cc
@@ -526,8 +526,8 @@
DEFUN_DLD (num2cell, args, ,
"-*- texinfo -*-\n\
@deftypefn {Loadable Function} {@var{c} =} num2cell (@var{m})\n\
- at deftypefnx {Loadable Function} {@var{c} =} num2cell (@var{m}, @var{d})\n\
-Convert the matrix @var{m} into a cell array. If @var{d} is defined the\n\
+ at deftypefnx {Loadable Function} {@var{c} =} num2cell (@var{m}, @var{dim})\n\
+Convert the matrix @var{m} into a cell array. If @var{dim} is defined, the\n\
value @var{c} is of dimension 1 in this dimension and the elements of\n\
@var{m} are placed in slices in @var{c}.\n\
@seealso{mat2cell}\n\
# HG changeset patch
# User Thomas Weber <thomas.weber.mail at gmail.com>
# Date 1220950569 -7200
# Node ID dd2cdffaab5812d4f4a45053776cc61b60b0d288
# Parent c1fc8550852dbadca5204f3c7258faf68f4273ef
Another typo in num2cell's description
diff --git a/src/DLD-FUNCTIONS/cellfun.cc b/src/DLD-FUNCTIONS/cellfun.cc
--- a/src/DLD-FUNCTIONS/cellfun.cc
+++ b/src/DLD-FUNCTIONS/cellfun.cc
@@ -527,7 +527,7 @@
"-*- texinfo -*-\n\
@deftypefn {Loadable Function} {@var{c} =} num2cell (@var{m})\n\
@deftypefnx {Loadable Function} {@var{c} =} num2cell (@var{m}, @var{dim})\n\
-Convert the matrix @var{m} into a cell array. If @var{dim} is defined, the\n\
+Converts the matrix @var{m} into a cell array. If @var{dim} is defined, the\n\
value @var{c} is of dimension 1 in this dimension and the elements of\n\
@var{m} are placed in slices in @var{c}.\n\
@seealso{mat2cell}\n\
# HG changeset patch
# User Thomas Weber <thomas.weber.mail at gmail.com>
# Date 1220950623 -7200
# Node ID b6b9c51ad96b77af1fec629dfb2e659cb9374405
# Parent dd2cdffaab5812d4f4a45053776cc61b60b0d288
Missing full stop in mat2cell's description
diff --git a/src/DLD-FUNCTIONS/cellfun.cc b/src/DLD-FUNCTIONS/cellfun.cc
--- a/src/DLD-FUNCTIONS/cellfun.cc
+++ b/src/DLD-FUNCTIONS/cellfun.cc
@@ -624,7 +624,7 @@
@deftypefn {Loadable Function} {@var{b} =} mat2cell (@var{a}, @var{m}, @var{n})\n\
@deftypefnx {Loadable Function} {@var{b} =} mat2cell (@var{a}, @var{d1}, @var{d2}, @dots{})\n\
@deftypefnx {Loadable Function} {@var{b} =} mat2cell (@var{a}, @var{r})\n\
-Converts the matrix @var{a} to a cell array If @var{a} is 2-D, then\n\
+Converts the matrix @var{a} to a cell array. If @var{a} is 2-D, then\n\
it is required that @code{sum (@var{m}) == size (@var{a}, 1)} and\n\
@code{sum (@var{n}) == size (@var{a}, 2)}. Similarly, if @var{a} is\n\
a multi-dimensional and the number of dimensional arguments is equal\n\
More information about the Bug-octave
mailing list