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 MATLAB function creates a modal dialog that pauses execution until the user responds?
Answer: uiwait
uiwait suspends execution of the calling function until the specified figure is closed or uiresume is called.
In App Designer, which layout component automatically arranges child components in rows and columns?
Answer: GridLayout
GridLayout divides the parent container into a grid and children are placed in specified row/column positions.
What does setting the 'Enable' property of a uicontrol to 'off' do?
Answer: Disables interaction but keeps the component visible
Setting Enable to 'off' grays out the control so it is visible but cannot be interacted with by the user.
Which MATLAB function saves a figure as an image file programmatically?
Answer: exportgraphics
exportgraphics is the recommended modern function for saving figures to formats like PNG, PDF, and EPS with fine control.
In a MATLAB listbox (uicontrol Style='listbox'), which property holds the index of the currently selected item?
Answer: Value
The Value property of a listbox uicontrol stores the index (or indices for multi-select) of the selected item.
What function do you call to force MATLAB to process pending UI events and redraw graphics?
Answer: drawnow
drawnow flushes the event queue and updates the figure, ensuring UI changes appear immediately during long computations.
In App Designer, how do you access a UI component named 'Slider' from within a callback?
Answer: app.Slider
All components in App Designer are properties of the app object, accessed using dot notation as app.ComponentName.