Mercurial > hg > octave-nkf
diff scripts/plot/meshgrid.m @ 2311:2b5788792cad
[project @ 1996-07-11 20:18:38 by jwe]
author | jwe |
---|---|
date | Thu, 11 Jul 1996 20:18:38 +0000 |
parents | 5cffc4b8de57 |
children | 5ca126254d15 |
line wrap: on
line diff
--- a/scripts/plot/meshgrid.m +++ b/scripts/plot/meshgrid.m @@ -17,18 +17,18 @@ ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA ### 02111-1307, USA. -function [xx, yy] = meshgrid (x, y) +## usage: [xx, yy] = meshgrid (x, y) +## +## Given vectors of x and y coordinates, return two matrices corresponding +## to the x and y coordinates of a mesh. The rows of xx are copies of x, +## and the columns of yy are copies of y. +## +## [xx, yy] = meshgrid (x) is an abbreviation for [xx, yy] = meshgrid (x, x). +## +## See also: plot, semilogx, semilogy, loglog, polar, mesh, meshdom, contour, +## bar, stairs, gplot, gsplot, replot, xlabel, ylabel, title - ## usage: [xx, yy] = meshgrid (x, y) - ## - ## Given vectors of x and y coordinates, return two matrices corresponding - ## to the x and y coordinates of a mesh. The rows of xx are copies of x, - ## and the columns of yy are copies of y. - ## - ## [xx, yy] = meshgrid (x) is an abbreviation for [xx, yy] = meshgrid (x, x). - ## - ## See also: plot, semilogx, semilogy, loglog, polar, mesh, meshdom, contour, - ## bar, stairs, gplot, gsplot, replot, xlabel, ylabel, title +function [xx, yy] = meshgrid (x, y) if (nargin == 1) y = x;