The function described here offer an extraordinary easy access to produce comfortable user interaction usable by any MATLAB program and every MATLAB user. Its possibilities are unlimited, its usage almost idiot proof. Virtually no programming is required to use it; certainly no knowledge about programming is required to understand it. It uses MATLAB classes but hides them from the user.
All functions described here can also be constructed using GUIDE, but with considerable more time, effort and pain... Furthermore the result are less reusable, transferable or readable.
Imagine you want to call a function with a couple of parameters. You don't want to type each parameter in the command line every time and want to make your function usable to others and give it a nice graphical user interface that everybody can understand. Here is the solution! The examples in the image on that page and on the webpage (below) show how to create this gui in 8 readable lines.
For further reading see:
<a href="http://www.soton.ac.uk/~bleeck/parameter/index.htm"> the documentation</a> for another example how to use it see <a href="http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=7676&objectType=file" > the "sudoku" game </a> on the File exchange
Stefan Bleeck (2020). Create Interactive GUIs (https://www.mathworks.com/matlabcentral/fileexchange/5615-create-interactive-guis), MATLAB Central File Exchange. Retrieved .
this project is not supported any more. A new version is available as part of this project:
I'm getting the error
Index exceeds matrix dimensions.
Error in parametergui>parametergui_mainfcn (line 1032)
Error in parametergui (line 70)
I really want to like this, but I'm just encountering too many bugs for it to be useful. So far:
'directoryname' parameter fails when attempting to select a new directory (on OS X)
'slider' parameter simply fails with an error when used
'enablefield' option only seems able to enable / disable a single field for each checkbox
Nice stuff! I miss the listbox, is this not possible?
parameter\mfiles\units\length\@unit_length_parsec\unit_length_parsec.m need to make some correction on the following:
should change to
Awesome! I got a robust GUI for my application up and running in less than 3 mins.
Very useful. I've written several functions that use it.
1) widen the pop-up menus
2) allow for vertical placement of buttons (so we can have 'Ok' and 'Cancel')
update links in description
fixed a unit conversion bug
included an "add path automatically" function by Ion Marqvardsen
now includes sliders and a few bugfixes. Webpage is updated. Thanks for the feedback!
updated version contains more examples and a new functionality due to feedback from reader
updated version contains examples and the missing unit files