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 views (last 30 days)
Undefined function 'delay' for input arguments of type 'double'.
Error in main (line 17) delay(2000);

Answers (2)

Stephen23
Stephen23 on 4 Feb 2017
Edited: Stephen23 on 4 Feb 2017
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 on 4 Feb 2017
In MATLAB, use the pause function.

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!