Hi
i am new to Matlab. I want to plot frequency and magnitude of .wav file after filtering it upto 7khz .please tel me what code of Matlab will do this task. thanks
let ur .wav file is road
[road,fs]=wavread('road.wav');
sound(road,fs);
right=road,2); %right is 2nd column of road
time=(1/fs); %1/fs * length(right)
t=linspace(0,time,length(right)); %generates a row vector t of 'no. of elements in column 2 i.e right' points linearly spaced between and including 0 and time
plot(t,right)
xlabel('time (sec)');
ylabel('relative signal strength');
let ur .wav file is road
[road,fs]=wavread('road.wav'); [ mention fs= 7000hz]
sound(road,fs);
right=road,2); %right is 2nd column of road
time=(1/fs); %1/fs * length(right)
t=linspace(0,time,length(right)); %generates a row vector t of 'no. of elements in column 2 i.e right' points linearly spaced between and including 0 and time
plot(t,right)
xlabel('time (sec)');
ylabel('relative signal strength');