dir
cd analise_espectral
dir
exemplo_espectrograma
dir
clear
close all
dir
[y,fs]=waveread('G.wav');
help waveread
help wavread
[y,fs]=wavread('G.wav');
plot(y)
sound(y,fs)
dir
[y,fs]=audioread('Violin_for_spectrogram.ogg');
help audioread
dir
exemplo_espectrograma2
help wavread
[y,fs]=auread('Violin_for_spectrogram.ogg');
help auread
dir
clear
close all
dir
clc
dir
FFT_sol
clear
close all
clc
dir
exemplo_FFT
clc
t=0:1/1e5:1;
freq=10e3;
y=sin(2*pi*freq*t);
plot(t,y)
freq=1e3;
y=sin(2*pi*freq*t);
plot(t,y)
fs=1e5
transformada=fft(y);
whos
plot(abs(transformada))
eixo_freq=linspace(0,fs,length(transformada));
whos
figure
plot(eixo_freq)
plot(eixo_freq,abs(transformada)/length(transformada))
plot(eixo_freq,2*abs(transformada)/length(transformada))
clear
close all
exemplo_fft
clc
figure
plot(t,y)
clear
close all
dir
[y,fs]=wavread('FFT_sol.wav');
[y,fs]=wavread('G.wav');
fs
whos
y
plot(y)
help sound
sound(y,fs)
clear
close all
dir
FFT_sol
figure
plot(y)
[x,y]=ginput(9);
x
figure
plot(x,'.')
figure
clear
close all
FFT_sol
figure
plot(y)
help spectrogram
clear
close all
clear
fs=100e3; %frequencia de amostragem
tfinal=5; %tempo final
t=0:1/fs:tfinal; %vetor tempo
f0 = 1;
ffinal = 1e4;
method = 'quadratic';
y = chirp( t, f0, tfinal, ffinal, method );
plot(y)
clear
close all
dir
exemplo_espectrograma
whos
S
whos
figure
surf(t_fft,f/1000,log(abs(S)))
shading interp
surf(log(abs(S)))
shading interp
clear
close all
A=[1 2 3;4 5 6;7 8 9]
surf(A)
shading interp
view(2)
clear
close all
FFT_sol
clear
close all
clear
close all
FFT_sol
[S,f,t_fft]=spectrogram(y(:,1),2000,1900,[],fs);
figure
surf(t_fft,f,S)
surf(t_fft,f,abs(S))
shading interp
view(2)
surf(t_fft,f,log(abs(S)))
shading interp
view(2)
surf(log(abs(S)))
shading interp
view(2)
surf(log(abs(S.')))
shading interp
view(2)
figure
surf(f,t_fft,log(abs(S.')))
shading interp
view(2)
figure
surf(t_fft,f,log(abs(S)))
shading interp
view(2)
figure
surf(log(abs(S)))
shading interp
view(2)
whos
figure, plot(abs(S(19,:)))
figure
sound(y,fs)
help specgram
help spectrogram
doc spectrogram
clear
home
close all
edit FFT_sol.m
help fft
