I HAVE BEEN GIVEN A .WAV FILE(SOUND). I HAVE TO WRITE A PROGRAM IN MATLAB THAT: 1) READS THE FILE 2) DISPLAY WAVEFORM 3)COMPUTE AND DISPLAY FREQUENCY DOMAIN
jhapaliketo · Feb 20, 2009 12:36 AM · 13,797 views
buddieee . .. do you have to do that in the course elctronics II, i mean the upper division elective . .. we have to take matlab ... that what i took but we didnt do the wave functions that displays graph cause of limited time . . but when you open the matlab . .. just use the help button . that gives you a lot of what you want
C..Ronaldo · Feb 20, 2009 12:46 AM
Last edited: 20-Feb-09 12:51 AM
C..Ronaldo · Feb 20, 2009 12:46 AM
i need a concrete program. i have no time to do all the researches.help please...........
jhapaliketo · Feb 20, 2009 1:21 AM
script or simulink program?
madhab6 · Feb 20, 2009 8:38 AM
Here U go dude: clear all; close all; clc; % import a auio sample [y,Fs,nbit]=wavread('your_audio.wav'); % extract left channel only left=y(:,1); % calculate the time scale Ts=1/Fs; [nsamples,c]=size(y); tscale=0:Ts:(nsamples-1)*Ts; %plot left and right channel in time domain plot(tscale,left,'r'); xlabel('Time (sec)'); ylabel('Amplitude'); %compute the FFT with the proper sampling frequency fmax=Fs; %how many points the FFT must be computed on? N=nsamples; tscale=0:Ts:(N-1)*Ts; %N=number of FFT points: % change it and test the different resolution fscale=linspace(0,fmax/2,floor(N/2)); spectrum=fft(left,N); %plot the spectrum of the signal using the appropriate % frequency scale and module of the coefficients %plot the magnitude figure(2); plot(fscale,abs((spectrum(1:length(fscale))))); xlabel('Frequency Hz') ylabel('Module')
madhab6 · Feb 20, 2009 9:49 AM
ha ha.. I feel sorry for people coming here seeking someone to do their assignments for them. A little help/hits are fine but getting someone else to do it bothers me. You should just drop out of school if you are not prepared to spend time learning.
newlynew · Feb 20, 2009 9:59 AM
JHAPALIKETO, at least appreciate the work done for you
madhab6 · Feb 20, 2009 12:22 PM
Dude ! somewhere in the code just write that "I have cheated in this assignment". I bet, this guy will submit as it is and he will be caught. haha
khairey · Feb 20, 2009 1:14 PM
madhab6, i really appreciate your help and everyone, time nabhayera maile yo thread herna bhai raheko thiyina. thanks buddy
jhapaliketo · Feb 22, 2009 11:22 PM
This conversation is preserved exactly as it was on the original Sajha.com and can't accept new replies.
Start a New Discussion