undefined function 'timeoutDlg' errors out

1 view (last 30 days)
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);

Accepted Answer

Geoff Hayes
Geoff Hayes on 24 Jan 2015
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.)

More Answers (0)

Categories

Find more on Software Development Tools in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!