# HG changeset patch # User jwe # Date 1177092968 0 # Node ID 69e864d21c11e85db523fca5d121341063c3938a # Parent 5dde4dc2bcafbb74e7e64c4bc599194681191112 [project @ 2007-04-20 18:16:08 by jwe] diff -r 5dde4dc2bcaf -r 69e864d21c11 scripts/deprecated/Makefile.in --- a/scripts/deprecated/Makefile.in Fri Apr 20 17:16:50 2007 +0000 +++ b/scripts/deprecated/Makefile.in Fri Apr 20 18:16:08 2007 +0000 @@ -31,7 +31,7 @@ hypergeometric_rnd.m intersection.m is_bool.m is_complex.m \ is_list.m is_matrix.m is_scalar.m is_square.m is_stream.m \ is_struct.m is_symmetric.m is_vector.m isstr.m lognormal_cdf.m \ - lognormal_inv.m lognormal_pdf.m lognormal_rnd.m normal_cdf.m \ + lognormal_inv.m lognormal_pdf.m lognormal_rnd.m meshdom.m normal_cdf.m \ normal_inv.m normal_pdf.m normal_rnd.m pascal_cdf.m \ pascal_inv.m pascal_pdf.m pascal_rnd.m poisson_cdf.m \ poisson_inv.m poisson_pdf.m poisson_rnd.m setstr.m \ diff -r 5dde4dc2bcaf -r 69e864d21c11 scripts/deprecated/meshdom.m --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/deprecated/meshdom.m Fri Apr 20 18:16:08 2007 +0000 @@ -0,0 +1,40 @@ +## Copyright (C) 1996, 1997 John W. Eaton +## +## This file is part of Octave. +## +## Octave is free software; you can redistribute it and/or modify it +## under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## Octave is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with Octave; see the file COPYING. If not, write to the Free +## Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +## 02110-1301, USA. + +## -*- texinfo -*- +## @deftypefn {Function File} {} meshdom (@var{x}, @var{y}) +## This function has been deprecated. Use @code{meshgrid} instead. +## @end deftypefn + +## Author: jwe + +function [xx, yy] = meshdom (x, y) + + if (nargin == 2) + if (isvector (x) && isvector (y)) + xx = ones (length (y), 1) * x(:).'; + yy = flipud (y(:)) * ones (1, length (x)); + else + error ("meshdom: arguments must be vectors"); + endif + else + print_usage (); + endif + +endfunction diff -r 5dde4dc2bcaf -r 69e864d21c11 scripts/general/int2str.m --- a/scripts/general/int2str.m Fri Apr 20 17:16:50 2007 +0000 +++ b/scripts/general/int2str.m Fri Apr 20 18:16:08 2007 +0000 @@ -21,9 +21,9 @@ ## @deftypefn {Function File} {} int2str (@var{n}) ## @deftypefnx {Function File} {} num2str (@var{x}, @var{precision}) ## @deftypefnx {Function File} {} num2str (@var{x}, @var{format}) -## Convert a number to a string. These functions are not very flexible, -## but are provided for compatibility with @sc{Matlab}. For better control -## over the results, use @code{sprintf} (@pxref{Formatted Output}). +## Convert a number to a string. This function is not very flexible. +## For better control over the results, use @code{sprintf} +## (@pxref{Formatted Output}). ## @seealso{sprintf, num2str} ## @end deftypefn diff -r 5dde4dc2bcaf -r 69e864d21c11 scripts/general/num2str.m --- a/scripts/general/num2str.m Fri Apr 20 17:16:50 2007 +0000 +++ b/scripts/general/num2str.m Fri Apr 20 18:16:08 2007 +0000 @@ -21,9 +21,9 @@ ## @deftypefn {Function File} {} num2str (@var{n}) ## @deftypefnx {Function File} {} num2str (@var{x}, @var{precision}) ## @deftypefnx {Function File} {} num2str (@var{x}, @var{format}) -## Convert a number to a string. These functions are not very flexible, -## but are provided for compatibility with @sc{Matlab}. For better control -## over the results, use @code{sprintf} (@pxref{Formatted Output}). +## Convert a number to a string. This function is not very flexible. +## For better control over the results, use @code{sprintf} +## (@pxref{Formatted Output}). ## @seealso{sprintf, int2str} ## @end deftypefn diff -r 5dde4dc2bcaf -r 69e864d21c11 scripts/miscellaneous/flops.m --- a/scripts/miscellaneous/flops.m Fri Apr 20 17:16:50 2007 +0000 +++ b/scripts/miscellaneous/flops.m Fri Apr 20 18:16:08 2007 +0000 @@ -19,7 +19,7 @@ ## -*- texinfo -*- ## @deftypefn {Function File} {} flops () -## This function is provided for Matlab compatibility, but it doesn't +## This function is provided for @sc{Matlab} compatibility, but it doesn't ## actually do anything. ## @end deftypefn diff -r 5dde4dc2bcaf -r 69e864d21c11 scripts/miscellaneous/license.m --- a/scripts/miscellaneous/license.m Fri Apr 20 17:16:50 2007 +0000 +++ b/scripts/miscellaneous/license.m Fri Apr 20 18:16:08 2007 +0000 @@ -61,7 +61,7 @@ if (isempty (__octave_licenses__)) __octave_licenses__ = cell (); __octave_licenses__{1,1} = "Octave"; - __octave_licenses__{1,2} = "GNU General Public License, Version 2"; + __octave_licenses__{1,2} = "GNU General Public License"; __octave_licenses__{1,3} = true; if (exist ("OCTAVE_FORGE_VERSION")) __octave_licenses__{2,1} = "octave-forge"; diff -r 5dde4dc2bcaf -r 69e864d21c11 scripts/miscellaneous/pack.m --- a/scripts/miscellaneous/pack.m Fri Apr 20 17:16:50 2007 +0000 +++ b/scripts/miscellaneous/pack.m Fri Apr 20 18:16:08 2007 +0000 @@ -19,7 +19,7 @@ ## -*- texinfo -*- ## @deftypefn {Function File} {} pack () -## This function is provided for compatibility with Matlab, but it +## This function is provided for compatibility with @sc{Matlab}, but it ## doesn't actually do anything. ## @end deftypefn diff -r 5dde4dc2bcaf -r 69e864d21c11 scripts/miscellaneous/warning_ids.m --- a/scripts/miscellaneous/warning_ids.m Fri Apr 20 17:16:50 2007 +0000 +++ b/scripts/miscellaneous/warning_ids.m Fri Apr 20 18:16:08 2007 +0000 @@ -77,7 +77,7 @@ ## If the @code{Octave:associativity-change} warning is ## enabled, Octave will warn about possible changes in the meaning of ## some code due to changes in associativity for some operators. -## Associativity changes have typically been made for Matlab +## Associativity changes have typically been made for @sc{Matlab} ## compatibility. By default, the @code{Octave:associativity-change} ## warning is enabled. ## @@ -124,7 +124,7 @@ ## ## @item Octave:matlab-incompatible ## Print warnings for Octave language features that may cause -## compatibility problems with Matlab. +## compatibility problems with @sc{Matlab}. ## ## @item Octave:missing-semicolon ## If the @code{Octave:missing-semicolon} warning is enabled, Octave @@ -162,7 +162,7 @@ ## If the @code{Octave:precedence-change} warning is enabled, Octave ## will warn about possible changes in the meaning of some code due to ## changes in precedence for some operators. Precedence changes have -## typically been made for Matlab compatibility. By default, the +## typically been made for @sc{Matlab} compatibility. By default, the ## @code{Octave:precedence-change} warning is enabled. ## ## @item Octave:reload-forces-clear diff -r 5dde4dc2bcaf -r 69e864d21c11 scripts/optimization/glpkmex.m --- a/scripts/optimization/glpkmex.m Fri Apr 20 17:16:50 2007 +0000 +++ b/scripts/optimization/glpkmex.m Fri Apr 20 18:16:08 2007 +0000 @@ -18,7 +18,7 @@ ## 02110-1301, USA. ## -*- texinfo -*- -## @deftypefn {Function File} {[@var{xopt}, @var{fmin}, @var{status}, @var{extra}] =} glpk (@var{sense}, @var{c}, @var{a}, @var{b}, @var{ctype}, @var{lb}, @var{ub}, @var{vartype}, @var{param}, @var{lpsolver}, @var{save_pb}) +## @deftypefn {Function File} {[@var{xopt}, @var{fmin}, @var{status}, @var{extra}] =} glpkmex (@var{sense}, @var{c}, @var{a}, @var{b}, @var{ctype}, @var{lb}, @var{ub}, @var{vartype}, @var{param}, @var{lpsolver}, @var{save_pb}) ## This function is provided for compatibility with the old @sc{Matlab} ## interface to the GNU GLPK library. For Octave code, you should use ## the @code{glpk} function instead. diff -r 5dde4dc2bcaf -r 69e864d21c11 scripts/plot/Makefile.in --- a/scripts/plot/Makefile.in Fri Apr 20 17:16:50 2007 +0000 +++ b/scripts/plot/Makefile.in Fri Apr 20 18:16:08 2007 +0000 @@ -72,7 +72,6 @@ loglog.m \ loglogerr.m \ mesh.m \ - meshdom.m \ meshgrid.m \ ndgrid.m \ newplot.m \ diff -r 5dde4dc2bcaf -r 69e864d21c11 scripts/plot/meshdom.m --- a/scripts/plot/meshdom.m Fri Apr 20 17:16:50 2007 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,44 +0,0 @@ -## Copyright (C) 1996, 1997 John W. Eaton -## -## This file is part of Octave. -## -## Octave is free software; you can redistribute it and/or modify it -## under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2, or (at your option) -## any later version. -## -## Octave is distributed in the hope that it will be useful, but -## WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -## General Public License for more details. -## -## You should have received a copy of the GNU General Public License -## along with Octave; see the file COPYING. If not, write to the Free -## Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -## 02110-1301, USA. - -## -*- texinfo -*- -## @deftypefn {Function File} {} meshdom (@var{x}, @var{y}) -## Given vectors of @var{x} and @var{y} coordinates, return two matrices -## corresponding to the @var{x} and @var{y} coordinates of the mesh. -## -## Note: this function is provided for compatibility with older versions -## of @sc{Matlab}. You should use @code{meshgrid} instead. -## @end deftypefn - -## Author: jwe - -function [xx, yy] = meshdom (x, y) - - if (nargin == 2) - if (isvector (x) && isvector (y)) - xx = ones (length (y), 1) * x(:).'; - yy = flipud (y(:)) * ones (1, length (x)); - else - error ("meshdom: arguments must be vectors"); - endif - else - print_usage (); - endif - -endfunction diff -r 5dde4dc2bcaf -r 69e864d21c11 scripts/time/datestr.m --- a/scripts/time/datestr.m Fri Apr 20 17:16:50 2007 +0000 +++ b/scripts/time/datestr.m Fri Apr 20 18:16:08 2007 +0000 @@ -21,8 +21,8 @@ ## @deftypefn {Function File} {@var{str} =} datestr (@var{date}, [@var{f}, [@var{p}]]) ## Format the given date/time according to the format @code{f} and return ## the result in @var{str}. @var{date} is a serial date number (see -## @code{datenum}) or a date vector (see @code{datevec}). For compatibility -## with Matlab, @var{date} may also be a string or cell array of strings. +## @code{datenum}) or a date vector (see @code{datevec}). The value of +## @var{date} may also be a string or cell array of strings. ## ## @var{f} can be an integer which corresponds to one of the codes in ## the table below, or a date format string.