Mercurial > hg > octave-lyh
comparison src/data.cc @ 5724:82247c2a7520
[project @ 2006-03-30 21:34:52 by jwe]
author | jwe |
---|---|
date | Thu, 30 Mar 2006 21:34:53 +0000 |
parents | 24f6a13878c2 |
children | c7d5a534afa5 |
comparison
equal
deleted
inserted
replaced
5723:7fc5276c8f2f | 5724:82247c2a7520 |
---|---|
967 | 967 |
968 DEFUN (numel, args, , | 968 DEFUN (numel, args, , |
969 "-*- texinfo -*-\n\ | 969 "-*- texinfo -*-\n\ |
970 @deftypefn {Built-in Function} {} numel (@var{a})\n\ | 970 @deftypefn {Built-in Function} {} numel (@var{a})\n\ |
971 Returns the number of elements in the object @var{a}.\n\ | 971 Returns the number of elements in the object @var{a}.\n\ |
972 @seealso{size}\n\ | |
972 @end deftypefn") | 973 @end deftypefn") |
973 { | 974 { |
974 octave_value retval; | 975 octave_value retval; |
975 | 976 |
976 if (args.length () == 1) | 977 if (args.length () == 1) |
1020 @result{} 2\n\ | 1021 @result{} 2\n\ |
1021 @end example\n\ | 1022 @end example\n\ |
1022 \n\ | 1023 \n\ |
1023 @noindent\n\ | 1024 @noindent\n\ |
1024 returns the number of columns in the given matrix.\n\ | 1025 returns the number of columns in the given matrix.\n\ |
1026 @seealso{numel}\n\ | |
1025 @end deftypefn") | 1027 @end deftypefn") |
1026 { | 1028 { |
1027 octave_value_list retval; | 1029 octave_value_list retval; |
1028 | 1030 |
1029 int nargin = args.length (); | 1031 int nargin = args.length (); |
1116 | 1118 |
1117 DEFUN (rows, args, , | 1119 DEFUN (rows, args, , |
1118 "-*- texinfo -*-\n\ | 1120 "-*- texinfo -*-\n\ |
1119 @deftypefn {Built-in Function} {} rows (@var{a})\n\ | 1121 @deftypefn {Built-in Function} {} rows (@var{a})\n\ |
1120 Return the number of rows of @var{a}.\n\ | 1122 Return the number of rows of @var{a}.\n\ |
1121 @seealso{size, columns, length, isscalar, isvector, ismatrix}\n\ | 1123 @seealso{size, numel, columns, length, isscalar, isvector, ismatrix}\n\ |
1122 @end deftypefn") | 1124 @end deftypefn") |
1123 { | 1125 { |
1124 octave_value retval; | 1126 octave_value retval; |
1125 | 1127 |
1126 if (args.length () == 1) | 1128 if (args.length () == 1) |
1133 | 1135 |
1134 DEFUN (columns, args, , | 1136 DEFUN (columns, args, , |
1135 "-*- texinfo -*-\n\ | 1137 "-*- texinfo -*-\n\ |
1136 @deftypefn {Built-in Function} {} columns (@var{a})\n\ | 1138 @deftypefn {Built-in Function} {} columns (@var{a})\n\ |
1137 Return the number of columns of @var{a}.\n\ | 1139 Return the number of columns of @var{a}.\n\ |
1138 @seealso{size, rows, length, isscalar, isvector, and ismatrix}\n\ | 1140 @seealso{size, numel, rows, length, isscalar, isvector, and ismatrix}\n\ |
1139 @end deftypefn") | 1141 @end deftypefn") |
1140 { | 1142 { |
1141 octave_value retval; | 1143 octave_value retval; |
1142 | 1144 |
1143 if (args.length () == 1) | 1145 if (args.length () == 1) |