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

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

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.

Sign in to comment.

Answers (0)

Categories

Tags

Asked:

Neo
on 8 Sep 2012

Community Treasure Hunt

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

Start Hunting!