# meshz

Mesh surface plot with curtain.

## Syntax

* meshz(X, Y, Z)
* meshz(Z)
* meshz(Z, C)
* meshz(X, Y, Z, C)
* meshz(parent, ...)
* meshz(..., propertyName, propertyValue)
* go = meshz(...)

## Input argument

* X - x-coordinates: vector or matrix.
* Y - y-coordinates: vector or matrix.
* Z - z-coordinates: vector or matrix.
* C - Color array: m-by-n-by-3 array of RGB triplets.
* parent - a scalar graphics object value: parent container, specified as a axes.
* propertyName - a scalar string or row vector character.
* propertyValue - a value.

## Output argument

* go - a graphics object: surface type.

## Description

meshz creates a 3-D surface plot with a wireframe plot on top.

The function takes the same input arguments as the mesh function.

## Example

```matlab
f = figure();
[X,Y] = meshgrid(-5:.5:5);
Z = Y.*sin(X) - X.*cos(Y);
s = meshz(X,Y,Z)
```

![](https://160667757-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPvJ6mJve3gz5MU4d1%2Fuploads%2Fgit-blob-d2e4ac94bafb330600d186257c1db054481eba03%2Fmeshz_1_B64C241F.svg?alt=media)

## See also

[mesh](mesh), [meshgrid](../elementary_functions/meshgrid).

## History

| Version | Description     |
| ------- | --------------- |
| 1.0.0   | initial version |

## Author

Allan CORNET
