Interface Flashcards
7 cards from real MATLAB practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 Interface flashcards as text
Which function creates a context menu that appears when a user right-clicks on a MATLAB figure object?
Answer: uicontextmenu
uicontextmenu creates a context menu object that is attached to a graphics object via its UIContextMenu property.
What App Designer property determines the order in which Tab key presses move focus between components?
Answer: TabOrder
TabOrder is set in App Designer's component browser or programmatically to control keyboard navigation sequence.
Which MATLAB function displays a multi-line text input dialog and returns the string entered by the user?
Answer: inputdlg
inputdlg opens a dialog with labeled text fields and returns cell array of strings entered by the user.
In MATLAB graphics, what does setting a figure's 'WindowStyle' to 'modal' do?
Answer: Prevents interaction with other MATLAB windows until the figure is closed
A modal WindowStyle blocks user input to all other MATLAB windows until the modal figure is dismissed.
Which property of a MATLAB axes object controls the text label displayed below the x-axis?
Answer: XLabel
XLabel is an axes property that holds a text object; set XLabel.String to display a label below the x-axis.
What is the role of the 'Tag' property in MATLAB UI components?
Answer: Provides a string identifier to locate the component with findobj
Tag is a user-defined string identifier that findobj can search for to retrieve a handle without storing it explicitly.
In App Designer, which event fires when a user changes the selected tab in a TabGroup component?
Answer: SelectionChangedFcn
SelectionChangedFcn fires on the TabGroup when the user clicks a different Tab, providing the previous and current selection.