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

If Fixed is used for HorizontalAlignment or VerticalAlignment, then

the distance must be passed in as an extra argument:

ALIGN(HandleList,'Fixed',Distance,VerticalAlignment)

ALIGN(HandleList,HorizontalAlignment,'Fixed',Distance)

ALIGN(HandleList,'Fixed',HorizontalDistance,'Fixed',VerticalDistance)

Example:

f=figure;

u1 = uicontrol('Style','push', 'parent', f,'pos',...

[20 100 100 100],'string','button1');

u2 = uicontrol('Style','push', 'parent', f,'pos',...

[150 250 100 100],'string','button2');

u3 = uicontrol('Style','push', 'parent', f,'pos',...

[250 100 100 100],'string','button3');

hlist2 = [u1 u2 u3];

align(hlist2,'distribute','bottom');

See also uicontrol, uistack

Overloaded methods:

sweepset/align

Reference page in Help browser

doc align

<inspect> - Open the inspector and inspect object properties

INSPECT Open the inspector and inspect object properties

INSPECT (h) edits all properties of the given object whose handle is h,

using a property-sheet-like interface.

INSPECT ([h1, h2]) edits both objects h1 and h2; any number of objects

can be edited this way. If you edit two or more objects of different

types, the inspector might not be able to show any properties in common.

INSPECT with no argument launches a blank inspector window.

Note that "INSPECT h" edits the string 'h', not the object whose

handle is h.

Overloaded methods:

timer/inspect

serial/inspect

audiorecorder/inspect

audioplayer/inspect

VideoReader/inspect

instrument/inspect

daqdevice/inspect

daqchild/inspect

imaqdevice/inspect

imaqchild/inspect

icgroup/inspect

opcroot/inspect

Reference page in Help browser

doc inspect

<propedit> - Graphical property editor

PROPEDIT Graphical property editor

PROPEDIT edits all properties of any selected HG object through the

use of a graphical interface. PROPEDIT(HandleList) edits the

properties for the object(s) in HandleList. If HandleList is omitted,

the property editor will edit the current figure.

Launching the property editor will enable plot editing for the figure.

Example:

f=figure;

u1 = uicontrol('Style','push', 'parent', f,'pos',...

[20 100 100 100],'string','button1');

u2 = uicontrol('Style','push', 'parent', f,'pos',...

[150 250 100 100],'string','button2');

u3 = uicontrol('Style','push', 'parent', f,'pos',...

[250 100 100 100],'string','button3');

hlist = [u1 u2 u3];

propedit(hlist);

See also inspect, plotedit, propertyeditor

Overloaded methods:

COM/propedit

candidateset/propedit

Reference page in Help browser

doc propedit

Dialog boxes

<dialog> - Create dialog figure.

DIALOG Create dialog figure.

H = DIALOG(...) returns a handle to a dialog box and is

basically a wrapper function for the FIGURE command. In addition,

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