Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

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

Asked by Neo on 8 Sep 2012

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.

Neo

Tags

Products

No products are associated with this question.

0 Answers

Contact us