Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
26
Добавлен:
09.02.2015
Размер:
500.22 Кб
Скачать

If your function has additional parameters, for example k in myfun:

%-----------------------%

function z = myfun(x,y,k)

z = x.^k - y.^k - 1;

%-----------------------%

then you may use an anonymous function to specify that parameter:

ezcontourf(@(x,y)myfun(x,y,2))

See also ezplot, ezplot3, ezpolar, ezcontour, ezsurf, ezmesh,

ezsurfc, ezmeshc, contourf, vectorize, function_handle.

Overloaded methods:

sym/ezcontourf

Reference page in Help browser

doc ezcontourf

<pcolor> - Pseudocolor (checkerboard) plot.

PCOLOR Pseudocolor (checkerboard) plot.

PCOLOR(C) is a pseudocolor or "checkerboard" plot of matrix C.

The values of the elements of C specify the color in each

cell of the plot. In the default shading mode, 'faceted',

each cell has a constant color and the last row and column of

C are not used. With shading('interp'), each cell has color

resulting from bilinear interpolation of the color at its

four vertices and all elements of C are used.

The smallest and largest elements of C are assigned the first and

last colors given in the color table; colors for the remainder of the

elements in C are determined by table-lookup within the remainder of

the color table.

PCOLOR(X,Y,C), where X and Y are vectors or matrices, makes a

pseudocolor plot on the grid defined by X and Y. X and Y could

define the grid for a "disk", for example.

PCOLOR(AX,..) plots into AX instead of GCA.

H = PCOLOR(...) returns a handle to a SURFACE object.

PCOLOR is really a SURF with its view set to directly above.

See also caxis, surf, mesh, image, shading.

Reference page in Help browser

doc pcolor

<voronoi> - Voronoi diagram.

VORONOI Voronoi diagram.

VORONOI(X,Y) plots the Voronoi diagram for the points X,Y. Lines-to-

infinity are approximated with an arbitrarily distant endpoint.

VORONOI(X,Y,OPTIONS) specifies a cell array of strings OPTIONS

that were previously used by Qhull. Qhull-specific OPTIONS are no longer

required and are currently ignored. Support for these options will be

removed in a future release.

VORONOI(X,Y,TRI) uses the Delaunay triangulation TRI instead of

computing it internally.

VORONOI(DT) uses the Delaunay triangulation DT instead of computing it

internally, where DT is a DelaunayTri.

VORONOI(AX,...) plots into AX instead of GCA.

H = VORONOI(...,'LineSpec') plots the diagram with color and linestyle

specified and returns handles to the line objects created in H.

[VX,VY] = VORONOI(...) returns the vertices of the Voronoi edges in VX

and VY so that plot(VX,VY,'-',X,Y,'.') creates the Voronoi diagram.

The lines-to-infinity are the last columns of VX and VY. To

ensure the lines-to-infinity do not affect the settings of the axis

limits, use the commands:

h = plot(VX,VY,'-',X,Y,'.');

set(h(1:end-1),'xliminclude','off','yliminclude','off')

For the topology of the voronoi diagram, i.e. the vertices for

each voronoi cell, use DelaunayTri/voronoiDiagram as follows:

dt = DelaunayTri(X(:),Y(:))

[V,C] = voronoiDiagram(dt)

See also DelaunayTri, voronoin, delaunay, convhull.

Reference page in Help browser

doc voronoi

Соседние файлы в папке Библиотеки Matlab