UIGETVARIABLES creates a dialog box for selecting variables from the base workspace
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Editor's Note: This file was selected as MATLAB Central Pick of the Week
It is common to write GUI-driven applications which require end users to pass in some variables from the workspace when calling the function to launch the GUI, e.g. myPlottingGUI(X,Y)
UIGETVARIABLES allows your users to interactively select workspace variables from a dialog instead of having to type variable names when launching your app. You can restrict which types of variables are allowed for each input, making it easier for users to successfully pass the right data into your app.
Give it a try and let me know what you think!
Cite As
Michelle Hirsch (2026). UIGETVARIABLES: Dialog to pass variables from workspace into GUI (https://github.com/michellehirsch/uigetvariables), GitHub. Retrieved .
Acknowledgements
Inspired: Volumetric Data Explorer, Simple Viewer 3D
General Information
- Version 1.5.0.0 (8.75 KB)
-
View License on GitHub
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
Versions that use the GitHub default branch cannot be downloaded
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.5.0.0 | Moved code to GitHub |
||
| 1.4.0.0 | New feature: Second output argument to return names of selected variables. As Adam suggests, this can be useful for doing things like labeling axes with names meaningful to your end user. |
||
| 1.1.0.0 | Bug fix. |
||
| 1.0.0.0 |
