Filter löschen
Filter löschen

undefined function 'timeoutDlg' errors out

3 Ansichten (letzte 30 Tage)
Neesha
Neesha am 22 Jan. 2015
Beantwortet: Geoff Hayes am 24 Jan. 2015
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);

Akzeptierte Antwort

Geoff Hayes
Geoff Hayes am 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.)

Weitere Antworten (0)

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by