From bug-octave-request at bevo dot che dot wisc dot edu Tue Aug 1 11:04:46 2000 Subject: mesh*.m complex argument vectors From: "John W. Eaton" To: Rolf Fabian Cc: "'bug-octave UWISC'" Date: Tue, 1 Aug 2000 11:05:18 -0500 (CDT) On 1-Aug-2000, Rolf Fabian wrote: | The help part of 'scripts/plot/meshgrid.m' says: | ## The rows of at var{xx} are copies of @var{x}, | ## and the columns of at var{yy} are copies of @var{y}. | Depending on orientation, this is incorrect if complex | x,y vectors are involved, namely if x is column type, | or/and y is row type. Then erraneously complex conjugated | copies are returned! | | e.g. | :> [X,Y]=meshgrid([i;2i],[3i,4i]) | X = | 0 - 1i 0 - 2i | 0 - 1i 0 - 2i | Y = | 0 - 3i 0 - 3i | 0 - 4i 0 - 4i | | ( I've no idea what Matlab does in this case ) | | Note, that analogous incorrect features appears in all mesh*.m scripts, | i.e. also in 'meshdom.m' and 'mesh.m'. I fixed this problem in my sources. In the future, can you please send patches made with diff -u or diff -c? Thanks, jwe ----------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.che.wisc.edu/octave/octave.html How to fund new projects: http://www.che.wisc.edu/octave/funding.html Subscription information: http://www.che.wisc.edu/octave/archive.html -----------------------------------------------------------------------