Mercurial > hg > octave-lyh
changeset 11599:a18fac5c789d release-3-0-x
Tailorization
Import of the upstream sources from
Repository: /scratch/jwe/mercurial/cvs
Kind: cvs
Module: octave
Revision: 2007-12-28 21:04:11 by jwe
author | tailor@segfault.lan |
---|---|
date | Fri, 28 Dec 2007 21:04:11 +0000 |
parents | 58f5fab3ebe5 |
children | 54b0bf8abe50 |
files | scripts/ChangeLog scripts/plot/pcolor.m |
diffstat | 2 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2007-12-28 Kai Habel <kai.habel@gmx.de> + + * plot/pcolor.m: Swap 1st and 2nd argument in call to meshgrid. + Remove unnecessary call of size function. + 2007-12-21 John W. Eaton <jwe@octave.org> Version 3.0.0 released.
--- a/scripts/plot/pcolor.m +++ b/scripts/plot/pcolor.m @@ -36,9 +36,9 @@ if (nargin == 1) c = x; - z = zeros (size (c)); - [nr, nc] = size (c); - [x, y] = meshgrid (1:nr, 1:nc); + [nr, nc] = size(c); + z = zeros (nr, nc); + [x, y] = meshgrid (1:nc, 1:nr); elseif (nargin == 3) z = zeros (size (c)); else