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

View direction.

The surface spread exponent can be specified by including a sixth

argument as in specular(Nx,Ny,Nz,S,V,spread).

See also diffuse, surfnorm, surfl.

Reference page in Help browser

doc specular

<diffuse> - Diffuse reflectance.

DIFFUSE Diffuse reflectance.

R = DIFFUSE(Nx,Ny,Nz,S) returns the reflectance for a surface with

normal vector components [Nx,Ny,Nz]. S is a three vector that

defines the direction to the light source. S can also be a two vector

S = [Theta Phi] specifying the direction in spherical coordinates.

Lambert's Law: R = cos(PSI) where PSI is the angle between the

surface normal and light source.

See also specular, surfnorm, surfl.

Reference page in Help browser

doc diffuse

<surfnorm> - Surface normals.

SURFNORM Surface normals.

[Nx,Ny,Nz] = SURFNORM(X,Y,Z) returns the components of the 3-D

surface normal for the surface with components (X,Y,Z). The

normal is normalized to length 1.

[Nx,Ny,Nz] = SURFNORM(Z) returns the surface normal components

for the surface Z.

Without lefthand arguments, SURFNORM(X,Y,Z) or SURFNORM(Z)

plots the surface with the normals emanating from it.

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

SURFNORM(...,'PropertyName',PropertyValue,...) can be used to set

the value of the specified surface property. Multiple property

Values can be set with a single statement.

The surface normals returned are based on a bicubic fit of

the data. Use SURFNORM(X',Y',Z') to reverse the direction

of the normals.

Reference page in Help browser

doc surfnorm

Color maps

<hsv> - Hue-saturation-value color map.

HSV Hue-saturation-value color map

HSV(M) returns an M-by-3 matrix containing an HSV colormap.

HSV, by itself, is the same length as the current figure's

colormap. If no figure exists, MATLAB creates one.

An HSV colormap varies the hue component of the hue-saturation-value

color model. The colors begin with red, pass through yellow, green,

cyan, blue, magenta, and return to red. The map is particularly

useful for displaying periodic functions.

For example, to reset the colormap of the current figure:

colormap(hsv)

See also gray, hot, cool, bone, copper, pink, flag, prism, jet,

colormap, rgbplot, hsv2rgb, rgb2hsv.

<hot> - Black-red-yellow-white color map.

HOT Black-red-yellow-white color map

HOT(M) returns an M-by-3 matrix containing a "hot" colormap.

HOT, by itself, is the same length as the current figure's

colormap. If no figure exists, MATLAB creates one.

For example, to reset the colormap of the current figure:

colormap(hot)

See also hsv, gray, pink, cool, bone, copper, flag,

colormap, rgbplot.

<gray> - Linear gray-scale color map.

GRAY Linear gray-scale color map

GRAY(M) returns an M-by-3 matrix containing a gray-scale colormap.

GRAY, by itself, is the same length as the current figure's

colormap. If no figure exists, MATLAB creates one.

For example, to reset the colormap of the current figure:

colormap(gray)

See also hsv, hot, cool, bone, copper, pink, flag,

colormap, rgbplot.

<bone> - Gray-scale with tinge of blue color map.

BONE Gray-scale with a tinge of blue color map

BONE(M) returns an M-by-3 matrix containing a "bone" colormap.

BONE, by itself, is the same length as the current figure's

colormap. If no figure exists, MATLAB creates one.

For example, to reset the colormap of the current figure:

colormap(bone)

See also hsv, gray, hot, cool, copper, pink, flag,

colormap, rgbplot.

<copper> - Linear copper-tone color map.

COPPER Linear copper-tone color map

COPPER(M) returns an M-by-3 matrix containing a "copper" colormap.

COPPER, by itself, is the same length as the current figure's

colormap. If no figure exists, MATLAB creates one.

For example, to reset the colormap of the current figure:

colormap(copper)

See also hsv, gray, hot, cool, bone, pink, flag,

colormap, rgbplot.

<pink> - Pastel shades of pink color map.

PINK Pastel shades of pink color map

PINK(M) returns an M-by-3 matrix containing a "pink" colormap.

PINK, by itself, is the same length as the current figure's

colormap. If no figure exists, MATLAB creates one.

For example, to reset the colormap of the current figure:

colormap(pink)

See also hsv, gray, hot, cool, bone, copper, flag,

colormap, rgbplot.

<white> - All white color map.

WHITE All white color map

WHITE(M) returns an M-by-3 matrix containing a white colormap.

WHITE, by itself, is the same length as the current figure's

colormap. If no figure exists, MATLAB creates one.

For example, to reset the colormap of the current figure:

colormap(white)

See also hsv, gray, hot, cool, copper, pink, flag,

colormap, rgbplot.

<flag> - Alternating red, white, blue, and black color map.

FLAG Alternating red, white, blue, and black color map

FLAG(M) returns an M-by-3 matrix containing a "flag" colormap.

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