what this error means ...and what i shd do to sort it out????

?? Undefined function or method 'videoinput' for input arguments of type 'char'.
Error in ==> webcam at 12 vid = videoinput('Video0004.avi', 1, 'RGB24_640x480');

 Accepted Answer

It looks like you don't have videoinput function in your installation. You need to have Image Acquisition Toolbox to have that function. You can do
>> ver
to verify what you have.

5 Comments

thanks for responding...i dont have image acuisition toolbox..since m a student..anyways what is this
ver?? i cdnt get it
if you type ver at command line, it shows what you have in your installation
ok it is giving this info
MATLAB Version 7.7.0.471 (R2008b) MATLAB License Number: •••••• Operating System: Microsoft Windows Vista Version 6.1 (Build 7600) Java VM Version: Java 1.6.0_04 with Sun Microsystems Inc. Java HotSpot™ 64-Bit Server VM mixed mode ------------------------------------------------------------------------------------- MATLAB Version 7.7 (R2008b) Simulink Version 7.2 (R2008b) Aerospace Blockset Version 3.2 (R2008b) Aerospace Toolbox Version 2.2 (R2008b) Bioinformatics Toolbox Version 3.2 (R2008b) Communications Blockset Version 4.1 (R2008b) Communications Toolbox Version 4.2 (R2008b) Control System Toolbox Version 8.2 (R2008b) Curve Fitting Toolbox Version 1.2.2 (R2008b) Database Toolbox Version 3.5 (R2008b) Datafeed Toolbox Version 3.2 (R2008b) Econometrics Toolbox Version 1.0 (R2008b) Filter Design HDL Coder Version 2.3 (R2008b) Filter Design Toolbox Version 4.4 (R2008b) Financial Derivatives Toolbox Version 5.3 (R2008b) Financial Toolbox Version 3.5 (R2008b) Fixed-Income Toolbox Version 1.6 (R2008b) Fixed-Point Toolbox Version 2.3 (R2008b) Fuzzy Logic Toolbox Version 2.2.8 (R2008b) Genetic Algorithm and Direct Search Toolbox Version 2.4 (R2008b) Image Processing Toolbox Version 6.2 (R2008b) MATLAB Builder JA Version 2.0.2 (R2008b) MATLAB Builder NE Version 3.0 (R2008b) MATLAB Compiler Version 4.9 (R2008b) MATLAB Distributed Computing Server Version 4.0 (R2008b) MATLAB Report Generator Version 3.4 (R2008b) Mapping Toolbox Version 2.7.1 (R2008b) Model Predictive Control Toolbox Version 3.0 (R2008b) Neural Network Toolbox Version 6.0.1 (R2008b) Optimization Toolbox Version 4.1 (R2008b) Parallel Computing Toolbox Version 4.0 (R2008b) Partial Differential Equation Toolbox Version 1.0.13 (R2008b) RF Blockset Version 2.3 (R2008b) RF Toolbox Version 2.4 (R2008b) Real-Time Workshop Version 7.2 (R2008b) Real-Time Workshop Embedded Coder Version 5.2 (R2008b) Robust Control Toolbox Version 3.3.2 (R2008b) Signal Processing Blockset Version 6.8 (R2008b) Signal Processing Toolbox Version 6.10 (R2008b) SimBiology Version 2.4 (R2008b) SimDriveline Version 1.5.1 (R2008b) SimElectronics Version 1.1 (R2008b) SimEvents Version 2.3 (R2008b) SimHydraulics Version 1.4 (R2008b) SimMechanics Version 3.0 (R2008b) SimPowerSystems Version 5.0 (R2008b) Simscape Version 3.0 (R2008b) Simulink Control Design Version 2.4 (R2008b) Simulink Fixed Point Version 6.0 (R2008b) Simulink Parameter Estimation Version 1.2.3 (R2008b) Simulink Report Generator Version 3.4 (R2008b) Simulink Response Optimization Version 3.2 (R2008b) Simulink Verification and Validation Version 2.4 (R2008b) Spline Toolbox Version 3.3.5 (R2008b) Spreadsheet Link EX Version 3.0.2 (R2008b) Stateflow Version 7.2 (R2008b) Stateflow Coder Version 7.2 (R2008b) Statistics Toolbox Version 7.0 (R2008b) System Identification Toolbox Version 7.2.1 (R2008b) SystemTest Version 2.2 (R2008b) Video and Image Processing Blockset Version 2.6 (R2008b) Virtual Reality Toolbox Version 4.8 (R2008b) Wavelet Toolbox Version 4.3 (R2008b)
so what i shd do??? sorry..for asking such stupid qstions ...but m fresher at matlab...i havnt any clue watsoever..plz help
Your ver() output confirms that you don't have the Image Acquisition Toolbox installed, as Honglei Chen describes. Thus, you won't be able to acquire images through the videoinput() function. You might be able to find a replacement function on the File Exchange which can do this, but I am somewhat doubtful, as it would need to contain drivers for your particular video camera.
ok..thanks
do u know that replacement fuction()?? m using WebcamMaxSetup driver for my video camera

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!