Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

2-D and 3-D grids

```
[X,Y] =
meshgrid(x,y)
```

```
[X,Y] =
meshgrid(x)
```

```
[X,Y,Z]
= meshgrid(x,y,z)
```

```
[X,Y,Z]
= meshgrid(x)
```

For additional information on creating multidimensional grids, see Grid Representation.

Was this topic helpful?