ANSWER = STRUCTDLG(S) creates a modal dialog box that returns user input for multiple prompts in the struct ANSWER. S is the default struct. Each prompt string will inherit the S' fields name.
ANSWER will be the same struct as S except for fields of type "cell array of string" that will be returned as a single string (that selected by the user).
Dialog supports field of following types:
- numeric (both scalar and multi-dimensional)
- string (both single-line and multi-line)
- logical (both scalar and multi-dimensional)
- cellarray (both strings and heterogeneous data-types)
- struct
ANSWER = STRUCTDLG(S,NAME) specifies dialog title
ANSWER = STRUCTDLG(S,NAME,OPTIONS) specifies the option structure
Cite As
Paolo Fabbri (2026). structdlg (https://se.mathworks.com/matlabcentral/fileexchange/25541-structdlg), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.