메뉴 건너뛰기

app

매트랩2(wav의 sampling 및 fft 후, magnitude)

박영식2003.12.19 10:15조회 수 5740댓글 0

    • 글자 크기
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%20022191 박영식 project #2%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

x=wavread('1.wav');
LengthFrame=200;
NoFrame=length(x)/200;

figure(1);
subplot(2,1,1); plot(x,'r');
set(gca,'color','n');
title('20022191_2 박영식 1)입력 전체 파형');
grid on;
for i=1:LengthFrame
    X(i)=Frame(5,i); %%sampling///////
end
X200=abs(fftshift(fft(X,200))); %%fft.........
subplot(2,1,2); plot(X200,'r');
set(gca,'color','n');
title('20022191_2 박영식 2)한 프레임의 파형(5th)');
grid on;
for k=1:NoFrame
    for i=1:LengthFrame
        Frame(k,i)=x(i+LengthFrame*(k-1),1);
    end
end

for i=1:LengthFrame
    X(i)=Frame(5,i);
end
% Ploting the results
figure
stem(X120,'^','fill','k'); hold on;
plot(X120,'c'); hold off;
set(gca,'color','n');
title('20022191_2 박영식 3)magnitude of 1.wav(5th)','fontsize',12)
grid on
박영식 (비회원)
    • 글자 크기
[GAS] 구글 캘린더 일정을 스프레드 시트로 가져오기 (by lispro06) 대한민국 zip 코드 한국zipcode (by 박영식)

댓글 달기

박영식
2007.04.04 조회 5474
suritam9
2013.04.25 조회 5868
박영식
2008.08.18 조회 5893
lispro06
2017.11.27 조회 6102
이전 1 ... 5 6 7 8 9 10 11 12 13 14다음
첨부 (0)
위로