MATLAB: Undefined function ‘timeoutDlg’ errors out

Hi,
In my code I have usage of timeoutDlg to pop up a box to take user input. It worked fine and suddenly it started complaining as follow, what could be wrong here?
*******************************************
Undefined function 'timeoutDlg' for input arguments of type 'function_handle'.
Error in Configs (line 10)
gRunName = timeoutDlg(@inputdlg, 60,'Name this NGFSSC run:','NGFSSC');
Error in Interface (line 9)
Run = Configs(LocalDirectory);

Best Answer

Neesha - I suspect the problem is that your timeoutDlg function is no longer within the MATLAB search path. Try typing the following in the Command Window
which timoutDlg -all
The above will display the full path to the timeoutDlg…if it exists. If it doesn't, then look for the folder that contains the file and add it to the search path.
If you can't find the file (maybe it has been deleted), then try creating it again. (Presumably, you obtained this file from http://www.mathworks.com/matlabcentral/answers/96229-how-can-i-have-a-dialog-box-or-user-prompt-with-a-time-out-period.)