MATLAB: Getting error inMatlab 2008 but code is fine in Matlab 2011

error

Hi i have written a code which is working fine with me in Matlab 2011
when i send same code tomy frd who is using Matlab 2008,he is gettiing the error on this line no 34
[~, start_sample] = find_voice_activity(noisy_voice , starting_point);
error is
EDU>> dtmfmain(y,fs) ??? Error: File: dtmfmain.m Line: 34 Column: 3 Expression or statement is incorrect–possibly unbalanced (, {, or [.
How can i help him kindly tell me the changes which are required in this line to make it compatible with Matlab 2008
Thanks a lot

Best Answer

The use of ~ notation is only available in R2009b or later. You can replace ~ with a unwanted variable name such as temp, trash, dummy,...
Related Question