clc % clear the command prompt close all fprintf('wait please\n'); % to print a string in command prompt imaqreset % disconnect and delete all image aquisition objects clear all

2 次查看(过去 30 天)
Undefined function 'delay' for input arguments of type 'double'.
Error in main (line 17) delay(2000);

回答(2 个)

Stephen23
Stephen23 2017-2-4
编辑:Stephen23 2017-2-4
Possibly you are running Octave code: delay is an Octave function, but it is not a MATLAB function.
The correct MATLAB function may be pause. Try it.
Or maybe delay is a local function or other third-party function that your code requires, but that is not located anywhere on the MATLAB path. In this case, find the file and put it on the MATLAB path.

Star Strider
Star Strider 2017-2-4
In MATLAB, use the pause function.

类别

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

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by