Get the MATLAB code Published with MATLAB® 7.6
5 CommentsOldest to Newest
when I run this program application, it gives me the following error
??? Error using ==> wavread
Index range must be specified as a scalar or 2-element vector.
Error in ==> intruderdetection>customAlarmData at 175
[data, frequency, nbits] = wavread(‘alarm.wav’,’double’);
Error in ==> intruderdetection at 140
[alarmData, frequency, nbits] = customAlarmData();
Can you please help me out fixing the problem
It’s probably best to ask the author of the tool for specific questions regarding the application.
But here’s some advice for debugging m-files. Notice the error message you are getting. It’s basically saying that there’s an error in line 175 with the “wavread” function. Type “help wavread” to make sure that the syntax is valid. In this particular case, it’s possible that you are using an older version of MATLAB, which may not support the particular syntax. You may be able to just remove the ‘double’ argument and make it work. Give that a try.
Hey, that is a pretty nifty use of MATLAB! I’m going to make an alarm system for my house.
I am using R2006a version.Is it possible to do motion and nosie detection in my laptop? what else i reqired for motion ad noise detection?
You should be able to do it with R2006a. As you can see from this File Exchange entry
it says it requires Data Acquisition and Image Acquisition Toolbox.