UIGETVARIABLES: Dialog to pass variables from workspace into GUI
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 (2024). UIGETVARIABLES: Dialog to pass variables from workspace into GUI (https://github.com/michellehirsch/uigetvariables), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: Volumetric Data Explorer, Simple Viewer 3D
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Versions that use the GitHub default branch cannot be downloaded
Version | Published | Release Notes | |
---|---|---|---|
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 |