Está en la página 1de 2

Problem Statement :Record your name. Export the wave file in MATLAB / SCILAB /OCTAVE.

Plot the signal versus time. Computed its FFT. Plot the magnitude of FFT versus frequency.
Upload the wave file (.wav), MATLAB code (.m) file and Plots

%Experiment no: 5
%Name:rohit giram,
%Roll no: 48,
%GR no: 172023

[y,Fs]=audioread('rohit.wav');
plot(y)

output:
%Experiment no: 5
%Name:rohit giram,
%Roll no: 16,
%GR no: 172023
[y,Fs]=audioread('rohit.wav');

%sound(y,Fs);
size('rohit');
length(y)
whos y;
whos Fs;
TotalTime=length(y)./Fs;
t=0:TotalTime/(length(y)):TotalTime-TotalTime/length(y);
plot(t,y)
c=fft(y);
plot(abs(c));

También podría gustarte