MATLAB: Is there a way to record a user action into a script

macrorecord macroscript

hi,
i would like to know if there is an option that allows the user to clicks, with a mouse, on a GUI or functions and be given the written function or variable on a script so that it can be modified. It is called recording Macro on other programs like Image-Pro.
Thanks

Best Answer

The short answer is yes. You can use the INPUT function to get user input from the keyboard, or you can call QUESTDLG or one of its cousins ( INPUTDLG, LISTDLG, etc) to get the information from a GUI.
Related Question