MATLAB Creating Graphical User Interfaces
'SliderStep',[0.05 0.2] specifies the fractional amount that the thumb moves when the user clicks the arrow buttons or the slide ...
The first uicontrol argument, f, specifies the parent container. In this case, the parent is a figure, but you can also specify ...
The first uicontrol argument, f, specifies the parent container. In this case, the parent is a figure, but you can also specify ...
If the value of Max - Min is less than or equal to 1, the editable text field allows only a single line of input. If the width o ...
The first uicontrol argument, f, specifies the parent container. In this case, the parent is a figure, but you can also specify ...
'String',{'one','two','three','four'},... 'Position',[30 20 130 80],'Value',1); The first uicontrol argument, f, specifies the p ...
lb = uicontrol(f,'Style','listbox',... 'String',{'one','two','three','four'},... 'Max',2,'Min',0,'Value',[1 3],... 'Position',[3 ...
The name-value pair arguments, 'Data',magic(5), specifies the table data. In this case, the data is the 5-by-5 matrix returned b ...
The first argument passed to uipanel, f, specifies the parent container. In this case, the parent is a figure, but you can also ...
b1 = uicontrol(p,'Style','pushbutton','String','Button 1',... 'Units','normalized',... 'Position',[.1 .55 .8 .3]); b2 = uicontro ...
The first argument passed to uibuttongroup, f, specifies the parent container. In this case, the parent is a figure, but you can ...
rb1 = uicontrol(bg,'Style','radiobutton','String','Red',... 'Units','normalized',... 'Position',[.1 .6 .3 .2]); rb2 = uicontrol( ...
f = figure; ax = axes('Parent',f,'Position',[.15 .15 .7 .7]); The first two arguments passed to the axes function, 'Parent',f sp ...
Prevent Customized Axes Properties from Being Reset Data graphing functions, such as plot, image, and scatter, reset axes proper ...
uisetfont returns the selections as a structure array: myfont = struct with fields: FontName: 'Century Schoolbook' FontWeight: ' ...
set(btn,myfont); See Also Related Examples “Callbacks for Specific Components” on page 7-12 “Write Callbacks for Apps Created P ...
Lay Out a UI Programmatically You can adjust the size and location of components, and manage front-to-back order of grouped comp ...
You can query or change the outer bounds of the figure by using the OuterPosition property. The region enclosed by the outer bou ...
ans = 250 124 576 512 The left outer edge of this figure is 250 pixels from the left side of the screen. Its bottom outer edge i ...
Explicitly changing the Position or OuterPosition causes the other property to change. For example, this is the current Position ...
«
9
10
11
12
13
14
15
16
17
18
»
Free download pdf