undefined function 'timeoutDlg' errors out

1 次查看(过去 30 天)
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);

采纳的回答

Geoff Hayes
Geoff Hayes 2015-1-24
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 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by