- Scilab Help
- Graphics
- 2d_plot
- LineSpec
- Matplot
- Matplot1
- Matplot properties
- Sfgrayplot
- Sgrayplot
- champ
- champ1
- champ properties
- comet
- contour2d
- contour2di
- contour2dm
- contourf
- errbar
- fchamp
- fcontour2d
- fec
- fec properties
- fgrayplot
- fplot2d
- grayplot
- grayplot properties
- graypolarplot
- histplot
- paramfplot2d
- plot
- plot2d
- plot2d1
- plot2d2
- plot2d3
- plot2d4
- polarplot

Please note that the recommended version of Scilab is 6.1.0. This page might be outdated.

See the recommended documentation of this function

# contour2di

compute level curves of a surface on a 2D plot

### Calling Sequence

[xc, yc] = contour2di(x, y, z, nz)

### Arguments

- x, y
two real row vectors of size

`n1`

and`n2`

: the grid.- z
a real matrix of size

`(n1,n2)`

, the values of the function.- nz
the level values or the number of levels.

- If
`nz`

is an integer its value gives the number of level curves equally spaced from

`zmin`

to`zmax`

as follows:z= zmin + (1:nz)*(zmax-zmin)/(nz+1)

Note that the`zmin`

and`zmax`

levels are not drawn (generically they are reduced to points) but they can be added with- If
`nz`

is a vector `nz(i)`

gives the value of the`i`

-th level curve.

- If
- xc, yc
vectors of identical sizes containing the contours definitions. See below for details.

### Description

`contour2di`

computes level curves of a surface
`z = f(x, y)`

on a 2D plot. The values of
`f(x,y)`

are given by the matrix `z`

at the grid points defined by `x`

and `y`

.

`xc(1)`

contains the level associated with first
contour path, `yc(1)`

contains the number
`N1`

of points defining this contour path and
(`xc(1+(1:N1))`

, `yc(1+(1:N1))`

)
contain the coordinates of the paths points. The second path begin
at `xc(2+N1)`

and `yc(2+N1)`

and
so on.

### Examples

### See Also

- contour — level curves on a 3D surface
- contour2d — level curves of a surface on a 2D plot
- contour2dm — compute level curves of a surface defined with a mesh
- plot2d — 2D plot

## Comments

Add a comment:Please login to comment this page.