About Wavrecord, please help!! My program requires the user to input the length(r) and choose the sampling frequency(g). But in here, it does not detect the value of g. Program can be found below
Show older comments
My program requires the user to input the length(r) and choose the sampling frequency(g). But in here, it does not detect the value of g r =
3
g =
[]
??? Error using ==> recsnd The error message identifier is invalid.
Error in ==> wavrecord at 48 y = recsnd(s.n, s.fs, s.bits, s.ch, s.dtype_id).';
Error in ==> lalal>RECORD_Callback at 119 voice=wavrecord(r*g,g,'double');
Error in ==> gui_mainfcn at 96 feval(varargin{:});
Error in ==> lalal at 42 gui_mainfcn(gui_State, varargin{:});
Error in ==> @(hObject,eventdata)lalal('RECORD_Callback',hObject,eventdata,guidata(hObject))
??? Error while evaluating uicontrol Callback
1 Comment
Matt Tearle
on 8 Sep 2012
It's hard to say what's happening without seeing the code. From your description and the error messages, I'm guessing you have a callback to obtain r and g, then a callback to do the recording (using those values). So can you please post the code for those two parts of the application.
Answers (0)
Categories
Find more on Entering Commands in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!