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

Information.

Example:

h = figure('ToolBar','none')

ht = uitoolbar(h)

a = [.05:.05:0.95];

b(:,:,1) = repmat(a,19,1)';

b(:,:,2) = repmat(a,19,1);

b(:,:,3) = repmat(flipdim(a,2),19,1);

hpt = uipushtool(ht,'CData',b,'TooltipString','Hello')

See also get, set, uitoggletool, uitoolbar, uimenu, figure.

Reference page in Help browser

doc uipushtool

<uitable> - creates a two dimensional graphic table component.

UITABLE creates a two dimensional graphic table component.

UITABLE creates a table component using default property values in

the current figure window. If no figure exists, one will be created.

UITABLE('PropertyName1',value1,'PropertyName2',value2,...) creates a

uitable object with specified property values. MATLAB uses default

property values for any property that is not specified.

UITABLE(PARENT, ...) creates a uitable object as child of the specified

parent handle PARENT. The parent can be a figure or uipanel handle.

H = UITABLE(...) creates a uitable object and returns its handle.

Execute GET(H), where H is a uitable handle, to see the list of uitable

object properties and their current values.

Execute SET(H) to see the list of uitable object properties that can be

set and their legal property values.

Example: create a table with data, column names, parent and position.

f = figure;

data = rand(3);

colnames = {'X-Data', 'Y-Data', 'Z-Data'};

t = uitable(f, 'Data', data, 'ColumnName', colnames, ...

'Position', [20 20 260 100]);

See also figure, inspect, format, sprintf, uicontrol, uimenu, uipanel

Reference page in Help browser

doc uitable

<uitoggletool> - Create a togglebutton in the toolbar of a figure window.

UITOGGLETOOL Create a togglebutton in the toolbar of a figure window.

UITOGGLETOOL creates a togglebutton control in the last added toolbar

of the current figure window and returns a handle to it.

UITOGGLETOOL('PropertyName1', value1, 'PropertyName2', value2,...)

creates a togglebutton control with the specified properties in the

toolbar and returns a handle to it.

UITOGGLETOOL(TBAR, ...) creates a togglebutton control in the specified

toolbar.

H = UITOGGLETOOL(...) creates a togglebutton control and assigns a

handle to H.

UITOGGLETOOL properties can be set at object creation time using the

PropertyName/PropertyValue pair arguments to UITOGGLETOOL, or changed

later using the SET command.

Execute GET(H) to see a list of UITOGGLETOOL object properties and their

current values. Execute SET(H) to see a list of UITOGGLETOOL object

properties and legal property values. See the reference guide for more

Information.

Example:

This example creates a uitoolbar object and places a uitoggletool

object on it.

h = figure('ToolBar','none');

ht = uitoolbar(h);

a = rand(20,20,3);

htt = uitoggletool(ht,'CData',a,'TooltipString','Hello');

See also get, set, uipushtool, uitoolbar, uimenu, figure.

Reference page in Help browser

doc uitoggletool

<uitoolbar> - Create a toolbar in a figure window.

UITOOLBAR Create a toolbar in a figure window.

UITOOLBAR creates an empty toolbar with default property values in the

current figure window and returns a handle to it.

UITOOLBAR('PropertyName1', value1, 'PropertyName2', value2,...)

creates an empty toolbar with the specified properties in the current

figure window and returns a handle to it.

UITOOLBAR(FIG, ...) creates an empty toolbar in the specified figure.

H = UITOOLBAR(...) creates an empty toolbar and assigns the handle to H.

UITOOLBAR properties can be set at object creation time using the

PropertyName/PropertyValue pair arguments to UITOOLBAR, or changed

later using the SET command.

Execute GET(H) to see a list of UITOOLBAR object properties and their

current values. Execute SET(H) to see a list of UITOOLBAR object

properties and legal property values. See the reference guide for more

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