MATLAB: Does the INPUT function return the wrong data when called from within a UIMENU object in MATLAB 6.5 (R13)

clearinputMATLABmenupackuimenu

I am generating a figure with UIMENU objects. In the callback functions for these objects, I use a call to the INPUT function to retrieve user input from MATLAB command line interface. Upon attempting to input data using this interface, the proper data is not returned. Instead, a structure that I do not recognize is returned.

Best Answer

This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, read below for any possible workarounds:
This bug has been fixed for Release 14 SP1 (R14SP1). For previous releases, read below for any possible workarounds:
This is a bug in MATLAB 6.5.1 (R13sp1) in the way that the INPUT function handles data when called from a UIMENU object immediately after issuing a call to the PACK function or specifying a CLEAR ALL command.
To work around this issue, try using a predefined input dialog box by using the INPUTDLG function instead of the INPUT function to gather user input.