I want to extract the first 0.5 seconds of an audio file and make that portion of the signal as 0. I read the audio file and plotted it successfully but I'm having trouble figuring out how to extract the first 0.5 seconds. Should I use a loop? My code so far, is given below.
[x,fs]= audioread('C:\Users\prashantram.s\Desktop\hello.wav'); [m,n]=size(x); dt=1/fs; t=dt*(0:m-1); figure(1); plot(t,x);
NOTE:-
Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help , Finance Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.
idx = t<0.5 ; x = x(idx) ;
SEE COMPLETE ANSWER CLICK THE LINK
Comments
Post a Comment