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 opens a file selection dialog box?
Answer: uigetfile
uigetfile opens a standard OS file selection dialog and returns the chosen filename and path.
In MATLAB App Designer, which property controls whether a UI component is visible to the user?
Answer: Visible
The Visible property accepts 'on' or 'off' to show or hide a UI component in App Designer.
What does the uicontrol function's 'Style' property set to 'slider' create?
Answer: A horizontal or vertical draggable slider
Setting Style to 'slider' in uicontrol creates a draggable slider that returns numeric values within a defined range.
Which App Designer callback fires when the value of a numeric edit field changes and the user presses Enter or clicks away?
Answer: ValueChangedFcn
ValueChangedFcn triggers when the NumericEditField value is committed by the user pressing Enter or losing focus.
How do you programmatically close a MATLAB figure window?
Answer: close(fig)
close(fig) closes the specified figure window, triggering any CloseRequestFcn callbacks.
In a MATLAB GUI, which function retrieves the value of a property from a UI object handle?
Answer: get
get(handle, 'PropertyName') returns the current value of the specified property for any graphics or UI object.
What is the purpose of the guidata function in GUIDE-based GUIs?
Answer: Store and retrieve shared application data across callbacks
guidata stores a data structure in the figure so all callbacks can access shared state via guidata(hObject).