undefined function 'timeoutDlg' errors out
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Neesha
el 22 de En. de 2015
Respondida: Geoff Hayes
el 24 de En. de 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);
0 comentarios
Respuesta aceptada
Geoff Hayes
el 24 de En. de 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.)
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Software Development Tools en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!