# difficulty in understanding this code [closed]

while abs(x(i)) <0.05     % Silence detection
i = i + 1;
end
x(1 : i) = [];
x(6000 : 10000) = 0;
x1 = x.* w;
mx = fft(x1);

% Transform to frequency domain
nx = abs(mx(floor(mel(f))));

• can anyone explain this code i'm new beginner in speech signal processing field and my programming skills are not good – zeee Jan 7 '14 at 19:40
• You really need to just google for a matlab syntax guide, here: mathworks.com/help/matlab/math/… – user1529 Jan 8 '14 at 5:48
• thanks .can you explain what does it mean these syntax x(1 : i) = []; x(6000 : 10000) = 0; – zeee Jan 8 '14 at 21:09

x is a sound signal, the while loop finds out the time point that sound first comes out. Before that, the signal is regarded as silence and removed, the signal within 6000 and 10000 elements are set to zero.
w is probably a window function that extracted the time zone you are interested, then the signal is converted to frequency domain. nx is the magnitude in frequency domain. (I am not sure what does mel mean, perhaps a function defined in another file)