Mercurial > hg > octave-lyh
comparison 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 |
comparison
equal
deleted
inserted
replaced
2310:e2a8f216373d | 2311:2b5788792cad |
---|---|
15 ### You should have received a copy of the GNU General Public License | 15 ### You should have received a copy of the GNU General Public License |
16 ### along with Octave; see the file COPYING. If not, write to the Free | 16 ### along with Octave; see the file COPYING. If not, write to the Free |
17 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA | 17 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA |
18 ### 02111-1307, USA. | 18 ### 02111-1307, USA. |
19 | 19 |
20 ## usage: [xx, yy] = meshgrid (x, y) | |
21 ## | |
22 ## Given vectors of x and y coordinates, return two matrices corresponding | |
23 ## to the x and y coordinates of a mesh. The rows of xx are copies of x, | |
24 ## and the columns of yy are copies of y. | |
25 ## | |
26 ## [xx, yy] = meshgrid (x) is an abbreviation for [xx, yy] = meshgrid (x, x). | |
27 ## | |
28 ## See also: plot, semilogx, semilogy, loglog, polar, mesh, meshdom, contour, | |
29 ## bar, stairs, gplot, gsplot, replot, xlabel, ylabel, title | |
30 | |
20 function [xx, yy] = meshgrid (x, y) | 31 function [xx, yy] = meshgrid (x, y) |
21 | |
22 ## usage: [xx, yy] = meshgrid (x, y) | |
23 ## | |
24 ## Given vectors of x and y coordinates, return two matrices corresponding | |
25 ## to the x and y coordinates of a mesh. The rows of xx are copies of x, | |
26 ## and the columns of yy are copies of y. | |
27 ## | |
28 ## [xx, yy] = meshgrid (x) is an abbreviation for [xx, yy] = meshgrid (x, x). | |
29 ## | |
30 ## See also: plot, semilogx, semilogy, loglog, polar, mesh, meshdom, contour, | |
31 ## bar, stairs, gplot, gsplot, replot, xlabel, ylabel, title | |
32 | 32 |
33 if (nargin == 1) | 33 if (nargin == 1) |
34 y = x; | 34 y = x; |
35 endif | 35 endif |
36 if (nargin > 0 && nargin < 3) | 36 if (nargin > 0 && nargin < 3) |